Initial import: grid-bot — grid trading bot for BTC-USDT on Cifra Markets
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# mypy: allow-untyped-defs
|
||||
from importlib.util import find_spec
|
||||
|
||||
import torch
|
||||
|
||||
|
||||
__all__ = ["amp_definitely_not_available"]
|
||||
|
||||
|
||||
def amp_definitely_not_available():
|
||||
return not (torch.cuda.is_available() or find_spec("torch_xla"))
|
||||
Reference in New Issue
Block a user