MCPcopy
hub / github.com/huggingface/transformers / backward

Method backward

src/transformers/integrations/bitnet.py:252–254  ·  view source on GitHub ↗
(ctx, grad_output)

Source from the content-addressed store, hash-verified

250
251 @staticmethod
252 def backward(ctx, grad_output):
253 grad_input = grad_output.clone()
254 return grad_input
255
256
257class AutoBitLinear(nn.Linear):

Calls

no outgoing calls