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

Function vjp

tensorflow/python/eager/backprop.py:535–539  ·  view source on GitHub ↗
(dy=None)

Source from the content-addressed store, hash-verified

533 finally:
534 tape.pop_tape(this_tape)
535 def vjp(dy=None):
536 if dy is not None:
537 dy = [ops.convert_to_tensor(x) for x in nest.flatten(dy)]
538 return imperative_grad.imperative_grad(
539 this_tape, nest.flatten(result), sources, output_gradients=dy)
540
541 return result, vjp
542

Callers 3

decoratedFunction · 0.85
testMakeVJPMethod · 0.85
testPersistentMakeVJPMethod · 0.85

Calls 1

flattenMethod · 0.45

Tested by 2

testMakeVJPMethod · 0.68
testPersistentMakeVJPMethod · 0.68