MCPcopy Create free account
hub / github.com/apple/ml-pointersect / test1

Method test1

tests/cdslib/optim/test_tf_optim.py:72–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 scaler.update()
71
72 def test1(self):
73 if torch.__version__ >= "1.7.0" and torch.cuda.is_available():
74 # AMP is better supported only on cuda
75 self._test(use_amp=True)
76
77 def test2(self):
78 self._test(use_amp=False)

Callers

nothing calls this directly

Calls 1

_testMethod · 0.95

Tested by

no test coverage detected