Tensorflow graphs in Tensorboard

This post demonstrate how setup & access Tensorflow graphs.


In order to access Tensorflow graphs, you need to use Tensorboard which comes will Tensorflow installed.

The following snippet shows how to setup a FileWriter with a Tensorflow graph.

tf.reset_default_graph()

# Your Tensorflow graph goes here.
# ...

sess = tf.Session()
sess.run(tf.global_variables_initializer())

# Declare tf.summary.FileWriter where log is your output directory for
# Tensorboard & add the graph to the writer.
writer = tf.summary.FileWriter('log', sess.graph)

# Run your training loop
# sess.run(...)

writer.close()

Run this command in terminal to start tensorboard:

$ tensorboard --logdir log

$ tensorboard --logdir ~/ray_results

Where log is the log folder.

Navigate to http://127.0.0.1:6006 in your browser to access Tensorflow. Your graph is in the graph tab.



2020

PBT for MARL

46 minute read

My attempt to implement a water down version of PBT (Population based training) for MARL (Multi-agent reinforcement learning).

Back to top ↑

2019

.bash_profile for Mac

13 minute read

This post demonstrates how to create customized functions to bundle commands in a .bash_profile file on Mac.

DPPO distributed tensorflow

68 minute read

This post documents my implementation of the Distributed Proximal Policy Optimization (Distributed PPO or DPPO) algorithm. (Distributed continuous version)

A3C distributed tensorflow

26 minute read

This post documents my implementation of the A3C (Asynchronous Advantage Actor Critic) algorithm (Distributed discrete version).

Distributed Tensorflow

76 minute read

This post demonstrates a simple usage example of distributed Tensorflow with Python multiprocessing package.

N-step targets

76 minute read

This post documents my implementation of the N-step Q-values estimation algorithm.

Dueling DDQN with PER

49 minute read

This post documents my implementation of the Dueling Double Deep Q Network with Priority Experience Replay (Duel DDQN with PER) algorithm.

Dueling DDQN

24 minute read

This post documents my implementation of the Dueling Double Deep Q Network (Dueling DDQN) algorithm.

DDQN

29 minute read

This post documents my implementation of the Double Deep Q Network (DDQN) algorithm.

DQN

24 minute read

This post documents my implementation of the Deep Q Network (DQN) algorithm.

Back to top ↑