mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-10 12:21:57 +08:00
fixing Win failed import (#1163)
* version * try fix distrib * update try import
This commit is contained in:
@@ -22,10 +22,10 @@ from torch.optim.optimizer import Optimizer
|
||||
|
||||
try:
|
||||
from apex import amp
|
||||
|
||||
APEX_AVAILABLE = True
|
||||
except ImportError:
|
||||
APEX_AVAILABLE = False
|
||||
else:
|
||||
APEX_AVAILABLE = True
|
||||
|
||||
|
||||
class ModelHooks(torch.nn.Module):
|
||||
|
||||
Reference in New Issue
Block a user