(op, g_output)
| 64 | |
| 65 | @GradientRegistry.RegisterGradient('UseInput') |
| 66 | def 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') |
nothing calls this directly
no test coverage detected
searching dependent graphs…