MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / backward

Method backward

k_diffusion/models/modules.py:238–241  ·  view source on GitHub ↗
(ctx, grad_output)

Source from the content-addressed store, hash-verified

236
237 @staticmethod
238 def backward(ctx, grad_output):
239 theta, = ctx.saved_tensors
240 _apply_rotary_emb_inplace(grad_output, theta, conj=not ctx.conj)
241 return grad_output, None, None
242
243
244def apply_rotary_emb_(x, theta):

Callers 3

trainFunction · 0.80
trainFunction · 0.80
mainFunction · 0.80

Calls 1

Tested by

no test coverage detected