MCPcopy Create free account
hub / github.com/alibaba/nann / _preprocess_grad

Function _preprocess_grad

tensorflow/tensorflow/python/ops/while_v2.py:473–503  ·  view source on GitHub ↗

Returns the initial gradient to be used for a given output tensor. Args: grad: the original gradient Tensor passed to the gradient function. body_graph_output: the corresponding Tensor in the body graph. while_op_output: the corresponding Tensor output of the While op. Returns:

(grad, body_graph_output, while_op_output)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_WhileGradFunction · 0.85

Calls 2

_is_trainableFunction · 0.85
_zeros_likeFunction · 0.85

Tested by

no test coverage detected