MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / backward

Method backward

index/dense/libs.py:257–261  ·  view source on GitHub ↗
(self, loss)

Source from the content-addressed store, hash-verified

255 return torch.cuda.amp.autocast() if self.activated else NullContextManager()
256
257 def backward(self, loss):
258 if self.activated:
259 self.scaler.scale(loss).backward()
260 else:
261 loss.backward()
262
263 def step(self, optimizer):
264 if self.activated:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected