MCPcopy Create free account
hub / github.com/pytorch/pytorch / is_available

Method is_available

test/test_utils.py:784–785  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

782class DummyXPUModule:
783 @staticmethod
784 def is_available():
785 return True
786
787 @staticmethod
788 def is_autocast_enabled():

Callers 15

setUpMethod · 0.45
test_torch_toMethod · 0.45
__exit__Method · 0.45
tearDownMethod · 0.45
test_autograd_errorsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected