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

Method context

index/dense/libs.py:254–255  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

252 self.scaler = torch.cuda.amp.GradScaler()
253
254 def context(self):
255 return torch.cuda.amp.autocast() if self.activated else NullContextManager()
256
257 def backward(self, loss):
258 if self.activated:

Callers

nothing calls this directly

Calls 1

NullContextManagerClass · 0.85

Tested by

no test coverage detected