Skip to content

Commit

Permalink
fix padding declutter
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Aug 8, 2023
1 parent 5275fc2 commit 640678a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/ops/cnn/conv/unary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ impl ConvUnary {
return Ok(None);
};
let shape = self.pool_spec.data_format.shape(&model.outlet_fact(node.inputs[0])?.shape)?;
if value.is_zero()?
if !value.is_zero()?
|| (self.pool_spec.data_format.has_n() && pad.pads[0] != (0, 0))
|| pad.pads[shape.c_axis()] != (0, 0)
{
Expand Down

0 comments on commit 640678a

Please sign in to comment.