avgpool, not maxpool (#1002)

This commit is contained in:
Piotr Rybiec 2024-04-17 17:26:22 +02:00 committed by GitHub
parent 8a0677d56d
commit 581b699ac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -317,7 +317,7 @@ class AvgPool2d(_Pool2d):
>>> import mlx.core as mx
>>> import mlx.nn.layers as nn
>>> x = mx.random.normal(shape=(8, 32, 32, 4))
>>> pool = nn.MaxPool2d(kernel_size=2, stride=2)
>>> pool = nn.AvgPool2d(kernel_size=2, stride=2)
>>> pool(x)
"""