MCPcopy Index your code
hub / github.com/pytorch/tutorials / backward

Method backward

advanced_source/numpy_extensions_tutorial.py:45–48  ·  view source on GitHub ↗
(ctx, grad_output)

Source from the content-addressed store, hash-verified

43
44 @staticmethod
45 def backward(ctx, grad_output):
46 numpy_go = grad_output.numpy()
47 result = irfft2(numpy_go)
48 return grad_output.new(result)
49
50# since this layer does not have any parameters, we can
51# simply declare this as a function, rather than as an ``nn.Module`` class

Callers 12

foreach_map.pyFile · 0.45
train_modelFunction · 0.45
amp_recipe.pyFile · 0.45
coding_ddpg.pyFile · 0.45
closureFunction · 0.45
pendulum.pyFile · 0.45
_run_trainerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected