mirror of https://github.com/hpcaitech/ColossalAI
parent
eb3fda4c28
commit
f5ca88ec97
|
@ -5,7 +5,7 @@ import torch.nn as nn
|
||||||
try:
|
try:
|
||||||
import apex.amp as apex_amp
|
import apex.amp as apex_amp
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError('Cannot import apex.amp correctly.')
|
pass
|
||||||
|
|
||||||
from torch import Tensor
|
from torch import Tensor
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue