import tensorflow as tf
from tensorboard import main as tb
tf.flags.FLAGS.logdir = "logdir"
tb.main()
def launch_tensorboard(path):
    """Launches tensorboard on localhost port 6006"""
    path = path +'/'+ os.listdir(path)[0]
    print("Loading model from '{}'".format(path))
    tf.flags.FLAGS.logdir = path
    tb.main()
Пример #3
0
def launch_tensorboard(log_dir):
    import tensorflow as tf
    from tensorboard import main as tb
    tf.flags.FLAGS.logdir = log_dir
    tb.main()
Пример #4
0
def run_tensorboard(log_dir, debug_port):
    from tensorboard import main as tb
    tf.flags.FLAGS.logdir = log_dir
    tf.flags.FLAGS.debugger_port = debug_port
    tb.main()
Пример #5
0
def visualize(model, host):
    tf.flags.FLAGS.logdir = model
    tf.flags.FLAGS.host = host
    tb.main()
Пример #6
0
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import sys

from tensorboard.main import main

if __name__ == '__main__':
  sys.exit(main())
Пример #7
0
def runTensorBoard():
    """ Runs TensorBoard for the given directory """
    tf.flags.FLAGS.logdir = MODEL_DIR
    tb.main()
    return