Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions python/mxnet/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,22 @@ def print_summary(symbol, shape=None, line_length=120, positions=[.44, .64, .74,
Rotal length of printed lines
positions: list
Relative or absolute positions of log elements in each line.

Returns
------
None

Notes
-----
If ``mxnet`` is imported, the visualization module can be used in its short-form.
For example, if we ``import mxnet`` as follows::

import mxnet

this method in visualization module can be used in its short-form as::

mxnet.viz.print_summary(...)

"""
if not isinstance(symbol, Symbol):
raise TypeError("symbol must be Symbol")
Expand Down Expand Up @@ -238,6 +251,18 @@ def plot_network(symbol, title="plot", save_format='pdf', shape=None, node_attrs
>>> digraph = mx.viz.plot_network(net, shape={'data':(100,200)},
... node_attrs={"fixedsize":"false"})
>>> digraph.view()

Notes
-----
If ``mxnet`` is imported, the visualization module can be used in its short-form.
For example, if we ``import mxnet`` as follows::

import mxnet

this method in visualization module can be used in its short-form as::

mxnet.viz.plot_network(...)

"""
# todo add shape support
try:
Expand Down