We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5249fb4 commit 7717c7bCopy full SHA for 7717c7b
Deeploy/CommonExtensions/OptimizationPasses/TopologyOptimizationPasses/LoweringOptimizationPasses.py
@@ -30,7 +30,7 @@ def _isDepthwise(node: gs.Node) -> bool:
30
spatialDims = len(node.inputs[1].shape) - 2
31
shapeIn = node.inputs[0].shape
32
chIn = shapeIn[-spatialDims - 1] if channels_first else shapeIn[-1]
33
- return node.attrs.get("group", 1) == chIn
+ return chIn != 1 and node.attrs.get("group", 1) == chIn
34
35
36
def _createReshape(tensorIn: gs.Tensor,
0 commit comments