Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
782
class
DummyXPUModule:
783
@staticmethod
784
def
is_available():
785
return
True
786
787
@staticmethod
788
def
is_autocast_enabled():
Callers
15
test_transformers.py
File · 0.45
test_functional_optim.py
File · 0.45
setUp
Method · 0.45
test_torch_to
Method · 0.45
test_binary_pointwise_ops
Method · 0.45
test_multiprocessing.py
File · 0.45
__exit__
Method · 0.45
tearDown
Method · 0.45
test_autograd_errors
Method · 0.45
test_leaf_variable_sharing
Method · 0.45
test_non_leaf_variable_sharing
Method · 0.45
test_proxy_tensor.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected