FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

draw_net: accept prototxt without name · ysh329/CaffeOnACL@2da8600 · GitHub

Repository navigation

Commit 2da8600

Browse files
committed
draw_net: accept prototxt without name
Fixes #3819
1 parent f623d04 commit 2da8600

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python/caffe/draw.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_pydot_graph(caffe_net, rankdir, label_edges=True):
142142
-------
143143
pydot graph object
144144
"""
145-
pydot_graph = pydot.Dot(caffe_net.name,
145+
pydot_graph = pydot.Dot(caffe_net.name if caffe_net.name else 'Net',
146146
graph_type='digraph',
147147
rankdir=rankdir)
148148
pydot_nodes = {}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL