File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1515try :
1616 # Tensorboard 0.4.x above series
1717 from tensorboard import default
18- if hasattr (default , 'PLUGIN_LOADERS' ):
19- # Tensorflow 1.10 series
18+ if hasattr (default , 'PLUGIN_LOADERS' ) or hasattr ( default , '_PLUGINS' ) :
19+ # Tensorflow 1.10 or above series
2020 logging .debug ("Tensorboard 1.10 or above series detected" )
2121 from tensorboard import program
2222
2323 def create_tb_app (logdir , reload_interval , purge_orphaned_data ):
2424 argv = [
25+ "" ,
2526 "--logdir" , logdir ,
2627 "--reload_interval" , str (reload_interval ),
2728 "--purge_orphaned_data" , str (purge_orphaned_data ),
2829 ]
29- tensorboard = program .TensorBoard (
30- default .PLUGIN_LOADERS ,
31- default .get_assets_zip_provider ())
30+ tensorboard = program .TensorBoard ()
3231 tensorboard .configure (argv )
3332 return application .standard_tensorboard_wsgi (
3433 tensorboard .flags ,
You can’t perform that action at this time.
0 commit comments