MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / _TopKGrad

Function _TopKGrad

tensorflow/python/ops/nn_grad.py:910–943  ·  view source on GitHub ↗

Return the gradients for TopK. Args: op: The TopKOp for which we need to generate gradients. grad: Tensor. The gradients passed to the TopKOp. Returns: A list of two tensors, the first being the gradient w.r.t to the input and TopK, and the second being the gradient w.r.t. to t

(op, grad, _)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

gatherMethod · 0.80
expand_dimsMethod · 0.80
shapeMethod · 0.45
sizeMethod · 0.45
stackMethod · 0.45
rangeMethod · 0.45

Tested by

no test coverage detected