Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
* Add a image in README.rst
* Add keyword arguments in `tfgraphviz.board(...)`
  • Loading branch information
akimach committed Feb 18, 2017
1 parent 9225044 commit 3512f30
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Quickstart
g = tfg.board(tf.get_default_graph())
g.view()
.. image:: https://raw.githubusercontent.com/akimach/tfgraphviz/master/img/graph.jpg
:align: center

License
-------

Expand Down
2 changes: 1 addition & 1 deletion examples/jupyter_sample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@
}
],
"source": [
"tfg.board(calc_reg, depth=2)"
"tfg.board(reg_g, depth=2)"
]
}
],
Expand Down
Binary file added img/graph.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name = 'tfgraphviz',
version = '0.0.2',
version = '0.0.3',
description = 'A simple graphviz wrapper to visualize a graph like TensorBoard',
long_description = long_description,
license = 'MIT',
Expand All @@ -22,7 +22,7 @@
url = 'https://github.com/akimach/tfgraphviz',
keywords = 'tensorflow tensor machine learning graphviz',
packages = find_packages(),
install_requires = ['tensorflow', 'graphviz'],
install_requires = ['graphviz'],
classifiers = [
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
Expand All @@ -31,4 +31,4 @@
'Intended Audience :: Education',
'Topic :: Scientific/Engineering :: Mathematics',
]
)
)
8 changes: 3 additions & 5 deletions tfgraphviz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python
# coding: utf-8

from .graphviz_wrapper import board

__author__ = 'akimacho'
__version__ = '0.0.1'
__license__ = 'MIT'

__version__ = '0.0.3'
__license__ = 'MIT'
4 changes: 2 additions & 2 deletions tfgraphviz/graphviz_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ def add_edges(node_inpt_table, g):
return g


def board(tfgraph, depth=1, style=True):
def board(tfgraph, depth=1, name='G', style=True):
global CLUSTER_INDEX
CLUSTER_INDEX = 0
_node_table = node_table(tfgraph, depth=depth)
_node_inpt_table = node_input_table(tfgraph, depth=depth)
g = add_nodes(_node_table, name='G', style=style)
g = add_nodes(_node_table, name=name, style=style)
g = add_edges(_node_inpt_table, g)
return g

0 comments on commit 3512f30

Please sign in to comment.