fix for torch2.0.0 suddenly being imposed on us
This commit is contained in:
parent
b253da6e35
commit
bea6174a19
|
@ -22,7 +22,13 @@ from shutil import get_terminal_size
|
|||
import scp
|
||||
import paramiko
|
||||
from torch.utils.checkpoint import checkpoint
|
||||
from torch._six import inf
|
||||
|
||||
try:
|
||||
# 1.13.1
|
||||
from torch._six import inf
|
||||
except Exception as e:
|
||||
# 2.0
|
||||
from torch import inf
|
||||
|
||||
import yaml
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user