Skip to content

Commit

Permalink
Fixed python script for drawing nets following original issues BVLC#3698
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardo91 authored and Bardo91 committed Jun 1, 2017
1 parent 6db0cb2 commit 12a5c3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/caffe/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ def get_layer_label(layer, rankdir):
(layer.name,
separator,
layer.type,
separator,
layer.convolution_param.kernel_size[0] if len(layer.convolution_param.kernel_size) else 1,
separator,
layer.convolution_param.kernel_size[0] if len(layer.convolution_param.kernel_size._values) else 1,
layer.convolution_param.stride[0] if len(layer.convolution_param.stride) else 1,
separator,
layer.convolution_param.stride[0] if len(layer.convolution_param.stride._values) else 1,
separator,
layer.convolution_param.pad[0] if len(layer.convolution_param.pad._values) else 0)
layer.convolution_param.pad[0] if len(layer.convolution_param.pad) else 0)
elif layer.type == 'Pooling':
pooling_types_dict = get_pooling_types_dict()
node_label = '"%s%s(%s %s)%skernel size: %d%sstride: %d%spad: %d"' %\
Expand Down

0 comments on commit 12a5c3f

Please sign in to comment.