MCPcopy
hub / github.com/yerfor/GeneFacePlusPlus / backward

Method backward

modules/radnerfs/utils.py:45–47  ·  view source on GitHub ↗
(ctx, g)

Source from the content-addressed store, hash-verified

43 @staticmethod
44 @custom_bwd
45 def backward(ctx, g):
46 x = ctx.saved_tensors[0]
47 return g * torch.exp(x.clamp(-15, 15))
48
49trunc_exp = _trunc_exp.apply
50

Callers 2

run_training_batchMethod · 0.45
fit_3dmm_for_a_videoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected