tensorflow之tf.stop_gradient

Stop gradient calculation.

When executed in a figure, the op is output as its input tensor.

When building ops to calculate the gradient, the op will prevent its contribution entered into account.

 

parameter:

Input: the amount a sheet.

name: name of the operation (optional)

return value:

A tensor. Having the same type of input.

Guess you like

Origin www.cnblogs.com/elitphil/p/11823996.html