MCPcopy Index your code
hub / github.com/modelscope/FunASR / backward

Method backward

funasr/models/data2vec/grad_multiply.py:24–31  ·  view source on GitHub ↗

Backward. Args: ctx: TODO. grad: TODO.

(ctx, grad)

Source from the content-addressed store, hash-verified

22
23 @staticmethod
24 def backward(ctx, grad):
25 """Backward.
26
27 Args:
28 ctx: TODO.
29 grad: TODO.
30 """
31 return grad * ctx.scale, None

Callers 2

backward_stepMethod · 0.45
train_epochMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected