(op, g_output)
| 52 | # Second gradient: (in -> out) leading to (out, out_grad -> in_grad) |
| 53 | @GradientRegistry.RegisterGradient('UseOutput') |
| 54 | def AddUseOutputGradient(op, g_output): |
| 55 | return ( |
| 56 | CopyDeviceOption( |
| 57 | CreateOperator( |
| 58 | 'UseOutputGradient', |
| 59 | list(op.output) + NeedAll(op, g_output), GIS(op)), |
| 60 | op), |
| 61 | GIS(op) |
| 62 | ) |
| 63 | |
| 64 | |
| 65 | @GradientRegistry.RegisterGradient('UseInput') |
nothing calls this directly
no test coverage detected
searching dependent graphs…