https://github.com/akimach/tfgraphviz
A visualization tool to show a TensorFlow's graph like TensorBoard
https://github.com/akimach/tfgraphviz
dataflow-programming deep-learning graphviz machine-learning neural-network python tensorboard tensorflow visualization
Last synced: 8 months ago
JSON representation
A visualization tool to show a TensorFlow's graph like TensorBoard
- Host: GitHub
- URL: https://github.com/akimach/tfgraphviz
- Owner: akimach
- License: mit
- Created: 2017-02-16T00:43:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-06T10:55:01.000Z (over 4 years ago)
- Last Synced: 2025-04-01T07:54:03.422Z (9 months ago)
- Topics: dataflow-programming, deep-learning, graphviz, machine-learning, neural-network, python, tensorboard, tensorflow, visualization
- Language: Python
- Homepage: https://pypi.python.org/pypi/tfgraphviz
- Size: 65.4 KB
- Stars: 45
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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
-----
- GitHub: http://github.com/akimach/tfgraphviz
- PyPI: https://pypi.python.org/pypi/tfgraphviz
- Jupyter Notebook:
.. image:: https://mybinder.org/badge.svg
:target: https://mybinder.org/v2/gh/akimach/tfgraphviz/master?filepath=examples%2Fjupyter_sample.ipynb
.. image:: https://img.shields.io/badge/view%20on-nbviewer-brightgreen.svg
:target: https://nbviewer.jupyter.org/github/akimach/tfgraphviz/blob/master/examples/jupyter_sample.ipynb
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 `_.
Author
-------
`Akimasa KIMURA `_