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 5e94114 commit 6617fee
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 6617fee

Please sign in to comment.