File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
from setuptools import find_packages , setup
3
3
4
- version = '0.7.3 '
4
+ version = '0.7.4 '
5
5
6
6
setup (
7
7
name = 'test_tube' ,
Original file line number Diff line number Diff line change @@ -150,6 +150,13 @@ def __init__(
150
150
151
151
# set the tensorboardx log path to the /tf folder in the exp folder
152
152
log_dir = self .get_tensorboardx_path (self .name , self .version )
153
+ # this is a fix for pytorch 1.1 since it does not have this attribute
154
+ for attr , val in [('purge_step' , None ),
155
+ ('max_queue' , 10 ),
156
+ ('flush_secs' , 120 ),
157
+ ('filename_suffix' , '' )]:
158
+ if not hasattr (self , attr ):
159
+ setattr (self , attr , val )
153
160
super ().__init__ (log_dir = log_dir , * args , ** kwargs )
154
161
155
162
# register on exit fx so we always close the writer
You can’t perform that action at this time.
0 commit comments