(op, g_output)
| 41 | # First gradient: (in -> out) leading to (out_grad -> in_grad) |
| 42 | @GradientRegistry.RegisterGradient('Direct') |
| 43 | def AddDirectGradient(op, g_output): |
| 44 | return ( |
| 45 | CopyDeviceOption( |
| 46 | CreateOperator('DirectGradient', NeedAll(op, g_output), GIS(op)), |
| 47 | op), |
| 48 | GIS(op) |
| 49 | ) |
| 50 | |
| 51 | |
| 52 | # Second gradient: (in -> out) leading to (out, out_grad -> in_grad) |
nothing calls this directly
no test coverage detected
searching dependent graphs…