tensorboard - Stopping Gradients for a subset of a tensor in tensorflow -
i have tensorflow graph set, input variable (x = tf.variable() ) , resulting error term (err). able update on subset of elements in x.
one way using tf.stop_gradient(), require rebuilding graph again scratch apply stop gradient operator. way without having go through rebuilding graph.
if can't rebuild graph, solution save values of x
prior update, , later tf.assign
values elements of x
want preserve.
Comments
Post a Comment