Skip to content

Commit 13b6dbb

Browse files
committed
revert unneeded conv_same_pad change
1 parent dfcf034 commit 13b6dbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hls4ml/backends/vivado/passes/conv_same_pad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from hls4ml.model.layers import Conv1D, Conv2D, DepthwiseConv1D, DepthwiseConv2D, SeparableConv1D, SeparableConv2D
1+
from hls4ml.model.layers import Conv1D, Conv2D, SeparableConv1D, SeparableConv2D
22
from hls4ml.model.optimizer import OptimizerPass
33

44

@@ -7,7 +7,7 @@ class InsertZeroPaddingBeforeConv1D(OptimizerPass):
77

88
def match(self, node):
99
is_match = (
10-
isinstance(node, (Conv1D, DepthwiseConv1D, SeparableConv1D))
10+
isinstance(node, (Conv1D, SeparableConv1D))
1111
and ((node.get_attr('padding') == 'same') or (node.get_attr('padding') == 'causal'))
1212
and node.get_attr('filt_width') != 1
1313
)
@@ -55,7 +55,7 @@ class InsertZeroPaddingBeforeConv2D(OptimizerPass):
5555

5656
def match(self, node):
5757
is_match = (
58-
isinstance(node, (Conv2D, DepthwiseConv2D, SeparableConv2D))
58+
isinstance(node, (Conv2D, SeparableConv2D))
5959
and node.get_attr('padding') == 'same'
6060
and node.get_attr('filt_height') != 1
6161
and node.get_attr('filt_width') != 1

0 commit comments

Comments
 (0)