mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-19 08:38:09 +08:00
avgpool, not maxpool (#1002)
This commit is contained in:
@@ -317,7 +317,7 @@ class AvgPool2d(_Pool2d):
|
|||||||
>>> import mlx.core as mx
|
>>> import mlx.core as mx
|
||||||
>>> import mlx.nn.layers as nn
|
>>> import mlx.nn.layers as nn
|
||||||
>>> x = mx.random.normal(shape=(8, 32, 32, 4))
|
>>> 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)
|
>>> pool(x)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user