MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / loop_fn

Method loop_fn

tensorflow/python/eager/backprop.py:1082–1087  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

1080 self._pop_tape()
1081
1082 def loop_fn(i):
1083 self._push_tape()
1084 y = array_ops.gather(target, i)
1085 self._pop_tape()
1086 return self.gradient(y, flat_sources,
1087 unconnected_gradients=unconnected_gradients)
1088
1089 try:
1090 target_size = int(target.shape[0])

Callers

nothing calls this directly

Calls 4

_push_tapeMethod · 0.95
_pop_tapeMethod · 0.95
gradientMethod · 0.95
gatherMethod · 0.45

Tested by

no test coverage detected