Skip to content

Commit

Permalink
fixed depthwise conv produce filtersize=None
Browse files Browse the repository at this point in the history
  • Loading branch information
majianjia committed Oct 20, 2020
1 parent 7e85a91 commit d973969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def gen_conv2d_config(layer, output_shifts, bias_shifts):
c = c.replace('<bias>',convert_tensor_name(layer.weights[1]))
c = c.replace('<output_shift_values>', output_shifts)
c = c.replace('<bias_shift_values>', bias_shifts)
c = c.replace('<filter_size>', str(layer.filters)) # output channel
c = c.replace('<filter_size>', '1' if layer.filters is None else str(layer.filters)) # output channel
c = c.replace('<kernel_size>', to_cstyle(layer.kernel_size))
c = c.replace('<stride_size>', to_cstyle(layer.strides))
c = c.replace('<padding_size>', '{0, 0}') # not using it with keras, defined by padding type instead
Expand Down

0 comments on commit d973969

Please sign in to comment.