Skip to content

Commit

Permalink
Merge pull request #5010 from ngaloppo/fix_drawnet
Browse files Browse the repository at this point in the history
[fix] pycaffe net draw needs default pooling values
  • Loading branch information
shelhamer authored Feb 17, 2017
2 parents 8a7a61a + db6cf0a commit 4b65348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/caffe/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def get_layer_label(layer, rankdir):
pooling_types_dict[layer.pooling_param.pool],
layer.type,
separator,
layer.pooling_param.kernel_size,
layer.pooling_param.kernel_size[0] if len(layer.pooling_param.kernel_size._values) else 1,
separator,
layer.pooling_param.stride,
layer.pooling_param.stride[0] if len(layer.pooling_param.stride._values) else 1,
separator,
layer.pooling_param.pad)
layer.pooling_param.pad[0] if len(layer.pooling_param.pad._values) else 0)
else:
node_label = '"%s%s(%s)"' % (layer.name, separator, layer.type)
return node_label
Expand Down

0 comments on commit 4b65348

Please sign in to comment.