mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +08:00
avgpool, not maxpool (#1002)
This commit is contained in:
parent
8a0677d56d
commit
581b699ac9
@ -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)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user