@@ -157,42 +157,14 @@ def standard_tensorboard_wsgi(flags, plugin_loaders, assets_zip_provider):
157157 continue
158158 plugins .append (plugin )
159159 plugin_name_to_instance [plugin .plugin_name ] = plugin
160- return TensorBoardWSGIApp (flags .logdir , plugins , loading_multiplexer ,
161- reload_interval , flags .path_prefix ,
162- flags .reload_task )
163160
164-
165- def TensorBoardWSGIApp (logdir , plugins , multiplexer , reload_interval ,
166- path_prefix = '' , reload_task = 'auto' ):
167- """Constructs the TensorBoard application.
168-
169- Args:
170- logdir: the logdir spec that describes where data will be loaded.
171- may be a directory, or comma,separated list of directories, or colons
172- can be used to provide named directories
173- plugins: A list of base_plugin.TBPlugin subclass instances.
174- multiplexer: The EventMultiplexer with TensorBoard data to serve
175- reload_interval: How often (in seconds) to reload the Multiplexer.
176- Zero means reload just once at startup; negative means never load.
177- path_prefix: A prefix of the path when app isn't served from root.
178- reload_task: Indicates the type of background task to reload with.
179-
180- Returns:
181- A WSGI application that implements the TensorBoard backend.
182-
183- Raises:
184- ValueError: If something is wrong with the plugin configuration.
185-
186- :type plugins: list[base_plugin.TBPlugin]
187- :rtype: TensorBoardWSGI
188- """
189- path_to_run = parse_event_files_spec (logdir )
190161 if reload_interval >= 0 :
191162 # We either reload the multiplexer once when TensorBoard starts up, or we
192163 # continuously reload the multiplexer.
193- start_reloading_multiplexer (multiplexer , path_to_run , reload_interval ,
194- reload_task )
195- return TensorBoardWSGI (plugins , path_prefix )
164+ path_to_run = parse_event_files_spec (flags .logdir )
165+ start_reloading_multiplexer (
166+ loading_multiplexer , path_to_run , reload_interval , flags .reload_task )
167+ return TensorBoardWSGI (plugins , flags .path_prefix )
196168
197169
198170class TensorBoardWSGI (object ):
0 commit comments