Skip to content

Commit

Permalink
fix: added dataformat for adaptive avgpool2d for alexnet
Browse files Browse the repository at this point in the history
  • Loading branch information
vedpatwardhan authored Jan 3, 2024
1 parent 3edcdff commit a24ac9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy_models/alexnet/alexnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _build(self, *args, **kwargs):
ivy.ReLU(),
ivy.MaxPool2D(3, 2, 0, data_format="NCHW"),
)
self.avgpool = ivy.AdaptiveAvgPool2d((6, 6))
self.avgpool = ivy.AdaptiveAvgPool2d((6, 6), data_format="NCHW")
self.classifier = ivy.Sequential(
ivy.Dropout(prob=self.spec.dropout),
ivy.Linear(256 * 6 * 6, 4096),
Expand Down

0 comments on commit a24ac9a

Please sign in to comment.