Awesome Open Source
Awesome Open Source

tfgraphviz

.. image:: https://img.shields.io/github/license/akimach/tfgraphviz.svg :alt: GitHub license :target: https://github.com/akimach/tfgraphviz/blob/master/LICENSE

.. image:: https://badge.fury.io/py/tfgraphviz.svg :target: https://badge.fury.io/py/tfgraphviz

tfgraphviz is a module to visualize a TensorFlow's data flow graph like TensorBoard using Graphviz. tfgraphviz enables to provide a visualization of tensorflow graph on Jupyter Notebook without TensorBoard.

Links

Installation

Use pip to install:

.. code-block:: bash

$ pip install graphviz
$ pip install tfgraphviz

The only dependency is Graphviz.

macOS:

.. code-block:: bash

$ brew install graphviz

Ubuntu:

.. code-block:: bash

$ apt-get install graphviz

Quickstart

.. code-block:: python

import tensorflow as tf
import tfgraphviz as tfg

g = tf.Graph()
with g.as_default():
    a = tf.constant(1, name="a")
    b = tf.constant(2, name="b")
    c = tf.add(a, b, name="add")
tfg.board(g)

.. image:: https://raw.githubusercontent.com/akimach/tfgraphviz/master/img/graph.jpg :align: center

License

This package is distributed under the MIT license <https://raw.githubusercontent.com/akimach/tfgraphviz/master/LICENSE>_.

Author

Akimasa KIMURA <https://github.com/akimach>_


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (51,035
deep-learning (3,777
machine-learning (3,455
tensorflow (2,100
visualization (783
neural-network (709
graphviz (65
tensorboard (40
dataflow-programming (19

Find Open Source By Browsing 7,000 Topics Across 59 Categories