MCPcopy Index your code
hub / github.com/pytorch/pytorch / AddUseInputGradient

Function AddUseInputGradient

caffe2/python/core_gradients_test.py:66–74  ·  view source on GitHub ↗
(op, g_output)

Source from the content-addressed store, hash-verified

64
65@GradientRegistry.RegisterGradient('UseInput')
66def AddUseInputGradient(op, g_output):
67 return (
68 CopyDeviceOption(
69 CreateOperator(
70 'UseInputGradient',
71 list(op.input) + NeedAll(op, g_output), GIS(op)),
72 op),
73 GIS(op)
74 )
75
76
77@GradientRegistry.RegisterGradient('Nogradient')

Callers

nothing calls this directly

Calls 5

CreateOperatorFunction · 0.90
CopyDeviceOptionFunction · 0.85
listFunction · 0.85
NeedAllFunction · 0.85
GISFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…