Closed kokeshing closed 7 months ago
This PR is for #31
From my own investigation, it seems that the cause is that valid is passed to ZeroPadding() in the following part of the conversion function for each convolution in node_converters/convolution.py.
valid
ZeroPadding()
node_converters/convolution.py
if padding == 'same': pad_str = 'same' elif padding != (0, 0): pad_layer = keras.layers.ZeroPadding2D(padding)
Therefore, I have added an if statement to make sure that the padding is not valid.
padding
if padding != 'valid': if padding == 'same': pad_str = 'same' elif padding != (0, 0): pad_layer = keras.layers.ZeroPadding2D(padding)
I would like to have your review to this PR.
I have force pushed to fix the commiter information.
This PR is for #31
From my own investigation, it seems that the cause is that
valid
is passed toZeroPadding()
in the following part of the conversion function for each convolution innode_converters/convolution.py
.Therefore, I have added an if statement to make sure that the
padding
is notvalid
.I would like to have your review to this PR.