0
点赞
收藏
分享

微信扫一扫

Torch SpatialAveragePooling 实例

小月亮06 2022-08-08 阅读 154


th> a = torch.ones(4,3,2)
th> b = nn.SpatialAveragePooling(2,2)(a)
th> b

(1,.,.) =
1
1

(2,.,.) =
1
1

(3,.,.) =
1
1

(4,.,.) =
1
1

th> a = torch.ones(3,2,2)
th> b = nn.SpatialAveragePooling(2,2)(a)
th> b

(1,.,.) =
1

(2,.,.) =
1

(3,.,.) =
1


举报

相关推荐

0 条评论