How to stop layer's gradient like Tensorflow in Fluid
Created by: TomorrowIsAnOtherDay
fc1 = fluid.layers.fc(x, 128)
In Tensorflow, We can stop gradient by using fc1 = tf.stop_gradient(fc1) and the gradient will not pass by this layer. Do we have same mechanism in fluid? I tried using fc1.stop_gradient=False but it didn't work.