Commit e362646e authored by Jaikrishnan Menon's avatar Jaikrishnan Menon Committed by Robert Kimball

Add StopGradient to the graph serializer (#1410)

parent c449005a
......@@ -83,6 +83,7 @@
#include "ngraph/op/slice.hpp"
#include "ngraph/op/softmax.hpp"
#include "ngraph/op/sqrt.hpp"
#include "ngraph/op/stop_gradient.hpp"
#include "ngraph/op/subtract.hpp"
#include "ngraph/op/sum.hpp"
#include "ngraph/op/tan.hpp"
......@@ -900,6 +901,10 @@ static shared_ptr<ngraph::Function>
{
node = make_shared<op::Tanh>(args[0]);
}
else if (node_op == "StopGradient")
{
node = make_shared<op::StopGradient>(args[0]);
}
else
{
stringstream ss;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment