Example #1
0
 def _SetupWSGIApp(self):
   multiplexer = event_multiplexer.EventMultiplexer(
       size_guidance=application.DEFAULT_SIZE_GUIDANCE,
       purge_orphaned_data=True)
   self.plugin = projector_plugin.ProjectorPlugin()
   wsgi_app = application.TensorBoardWSGIApp(
       self.log_dir, [self.plugin], multiplexer, reload_interval=0)
   self.server = werkzeug_test.Client(wsgi_app, wrappers.BaseResponse)
Example #2
0
def standard_tensorboard_wsgi(logdir, purge_orphaned_data, reload_interval):
    """Construct a TensorBoardWSGIApp with standard plugins and multiplexer."""
    multiplexer = event_multiplexer.EventMultiplexer(
        size_guidance=DEFAULT_SIZE_GUIDANCE,
        purge_orphaned_data=purge_orphaned_data)

    plugins = {
        debugger_plugin.PLUGIN_PREFIX_ROUTE: debugger_plugin.DebuggerPlugin(),
        projector_plugin.PLUGIN_PREFIX_ROUTE:
        projector_plugin.ProjectorPlugin(),
    }

    return TensorBoardWSGIApp(logdir, plugins, multiplexer, reload_interval)
Example #3
0
def main(unused_argv=None):
    if FLAGS.inspect:
        logging.info(
            'Not bringing up TensorBoard, but inspecting event files.')
        event_file = os.path.expanduser(FLAGS.event_file)
        efi.inspect(FLAGS.logdir, event_file, FLAGS.tag)
        return 0
    else:
        plugins = [
            projector_plugin.ProjectorPlugin(),
            text_plugin.TextPlugin(),
        ]
        tb = create_tb_app(plugins)
        run_simple_server(tb)
Example #4
0
def main(unused_argv=None):
  if FLAGS.inspect:
    tf.logging.info('Not bringing up TensorBoard, but inspecting event files.')
    event_file = os.path.expanduser(FLAGS.event_file)
    efi.inspect(FLAGS.logdir, event_file, FLAGS.tag)
    return 0
  else:
    plugins = [
        scalars_plugin.ScalarsPlugin(),
        images_plugin.ImagesPlugin(),
        audio_plugin.AudioPlugin(),
        graphs_plugin.GraphsPlugin(),
        distributions_plugin.DistributionsPlugin(),
        histograms_plugin.HistogramsPlugin(),
        projector_plugin.ProjectorPlugin(),
        text_plugin.TextPlugin(),
    ]
    tb = create_tb_app(plugins)
    run_simple_server(tb)