Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyufenfei committed May 10, 2020
1 parent e4943ed commit 0f0c32e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
import os,sys
import time
import torch
from torch import optim
Expand All @@ -22,6 +22,8 @@
from utils.scheduler.lr_scheduler import WarmupPolyLR


sys.setrecursionlimit(1000000) # solve problem 'maximum recursion depth exceeded'

torch_ver = torch.__version__[:3]
if torch_ver == '0.3':
from torch.autograd import Variable
Expand Down

0 comments on commit 0f0c32e

Please sign in to comment.