Skip to content

Commit 581b699

Browse files
authored
avgpool, not maxpool (#1002)
1 parent 8a0677d commit 581b699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/mlx/nn/layers/pooling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class AvgPool2d(_Pool2d):
317317
>>> import mlx.core as mx
318318
>>> import mlx.nn.layers as nn
319319
>>> x = mx.random.normal(shape=(8, 32, 32, 4))
320-
>>> pool = nn.MaxPool2d(kernel_size=2, stride=2)
320+
>>> pool = nn.AvgPool2d(kernel_size=2, stride=2)
321321
>>> pool(x)
322322
"""
323323

0 commit comments

Comments
 (0)