updates
This commit is contained in:
parent
eec0dc7b6c
commit
16bc3b72c3
@ -13,6 +13,7 @@ def init_seeds(seed=0):
|
||||
if CUDA_AVAILABLE:
|
||||
torch.cuda.manual_seed(seed)
|
||||
torch.cuda.manual_seed_all(seed)
|
||||
# torch.cuda.set_device(0) # OPTIONAL: Set your GPU if multiple available
|
||||
|
||||
|
||||
def select_device(force_cpu=False):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user