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