MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / autocast

Class autocast

core/biraft.py:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14except:
15 # dummy autocast for PyTorch < 1.6
16 class autocast:
17 def __init__(self, enabled):
18 pass
19
20 def __enter__(self):
21 pass
22
23 def __exit__(self, *args):
24 pass
25
26
27class BiRAFT(nn.Module):

Callers 1

forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected