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

Method forward

PATH/core/utils.py:342–344  ·  view source on GitHub ↗
(ctx, x, grad_scale)

Source from the content-addressed store, hash-verified

340class GradRejust(torch.autograd.Function):
341 @staticmethod
342 def forward(ctx, x, grad_scale):
343 ctx.grad_scale = grad_scale
344 return x.view_as(x)
345
346 @staticmethod
347 def backward(ctx, grad_output):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected