MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / backward

Method backward

python/oneflow/autograd/autograd_function.py:79–85  ·  view source on GitHub ↗

r""" Override this function for custom backward calculation.

(ctx, *out_grads)

Source from the content-addressed store, hash-verified

77
78 @staticmethod
79 def backward(ctx, *out_grads):
80 r"""
81 Override this function for custom backward calculation.
82 """
83 raise NotImplementedError(
84 "You must implement the backward function for custom autograd.Function."
85 )

Callers 2

_backwardFunction · 0.45
stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected