MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / backward

Method backward

PATH/core/utils.py:347–348  ·  view source on GitHub ↗
(ctx, grad_output)

Source from the content-addressed store, hash-verified

345
346 @staticmethod
347 def backward(ctx, grad_output):
348 return ctx.grad_scale * grad_output, None
349
350def grad_rejust(x, grad_scale=1.0):
351 return GradRejust.apply(x, grad_scale)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected