Skip to content

Commit

Permalink
fix: removed the additional permute dims from the forward pass of res…
Browse files Browse the repository at this point in the history
…net as adaptive_avg_pool2d also has the NHWC data format
  • Loading branch information
vedpatwardhan authored Jan 3, 2024
1 parent a24ac9a commit 3515ddc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ivy_models/resnet/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ def _forward(self, x):
x = self.layer2(x)
x = self.layer3(x)
x = self.layer4(x)
x = ivy.permute_dims(x, (0, 3, 1, 2))
x = self.avgpool(x)
x = x.reshape((x.shape[0], -1))
x = self.fc(x)
Expand Down

0 comments on commit 3515ddc

Please sign in to comment.