当前位置:网站首页>MindSpore缺失与torch.nn.Maxpool3d和torch.nn.Avgpool3d对标的算子
MindSpore缺失与torch.nn.Maxpool3d和torch.nn.Avgpool3d对标的算子
2022-06-10 04:31:00 【MSofficial】
问题描述:
缺失与torch.nn.Maxpool3d和torch.nn.Avgpool3d对于的mindspore算子
【操作步骤&问题现象】
1、请问有其他可以代替的算子吗
解答:
目前mindspore在ascend上是支持AvgPool3D和MaxPool3D的,使用方法如下:
>>> from mindspore.ops import operations as P
>>> x = Tensor(np.arange(1 * 2 * 2 * 2 * 3).reshape((1, 2, 2, 2, 3)), mindspore.float16)
>>> avg_pool3d = P.AvgPool3D(kernel_size=2, strides=1, pad_mode="valid")
>>> output = avg_pool3d(x)
>>> print(output)
>>> from mindspore.ops import operations as P
>>> x = Tensor(np.arange(1 * 2 * 2 * 2 * 3).reshape((1, 2, 2, 2, 3)), mindspore.float32)
>>> max_pool3d = P.MaxPool3D(kernel_size=2, strides=1, pad_mode="valid")
>>> output = max_pool3d(x)
>>> print(output)
边栏推荐
- Process, time slice, concurrency and parallelism
- JDBC 入门示例
- 什么时候用@ComponentScan?与@MapperScan有什么区别?
- [科技特长-3]:中考科技特长生知多少
- [understanding of opportunity -19]: Guiguzi - Feihe chapter - yin and yang are contradictions. They are the basic attribute of everything and one of the foundations of Guiguzi's philosophy
- Will quic become a disruptor of Internet transmission?
- Zero basic network: command line (CLI) debugging firewall practice
- APISpace 日出日落API接口 免费好用
- .NET C#基础(7):接口 - 人如何和猫互动
- [understanding of opportunity -20]: Guiguzi - Manoeuvring chapter - one opening and one closing, one movement and one relaxation are called manoeuvring, which can be used in the workplace.
猜你喜欢

Crack the five myths of programmers, and new programmer 004 is officially launched!
![[joint search set] sympodial plants (number of connected blocks)](/img/47/0dd7c64568a2176640dcab835228c6.png)
[joint search set] sympodial plants (number of connected blocks)

CSDN audio and video technology developers' online survey

idea中怎樣編寫Scala代碼

FastApi-15-文件上传-3
![[chance enlightenment -21]: Rethink technology, management, working, entrepreneurship and investment from the perspective of system architecture](/img/fa/09c8f624caa794b9084f525abb84ec.jpg)
[chance enlightenment -21]: Rethink technology, management, working, entrepreneurship and investment from the perspective of system architecture

jenkinsclient | 好用的jenkins客户端

多商户商城小程序源码有何优势?
![[understanding of opportunity -16]: Pyramid hierarchy conforms to nature](/img/d3/799e67b6dc825758927191d2ef8c4f.jpg)
[understanding of opportunity -16]: Pyramid hierarchy conforms to nature

Final examination paper 2 of the first postgraduate course in Dialectics of nature
随机推荐
Pysimplegui classic practice: how to read this Chinese character?
Super easy to use chrome plug-in!
[深入研究4G/5G/6G专题-28]: 5G NR开机流程4.6 - MSG5 (RRCSetupComplete)消息的调度
Metersphere | a super easy-to-use open source testing platform
JDBC 入門示例
[laser principle and application-1]: what is a laser and its common applications
Common database field type mapping relationships
[科技特长-1]:科技特长生概述与优势
APISpace 疫情地区校验API接口 免费好用
497. 非重叠矩形中的随机点
The relationship between libc, glibc and glib
Difference and idempotency analysis between put and patch in rest API
[机缘参悟-19]:鬼谷子-捭阖篇-阴阳即矛盾,是万事万物的基本属性,也是鬼谷子哲学的根基之一
Cross in tensorflow_ entropy
How to view Scala source code in idea
[science and technology specialty-1]: overview and advantages of science and Technology Specialty Students
APISpace 日出日落API接口 免费好用
Gui编程学生成绩管理系统
EasyRecovery数据恢复软件100%恢复的成功率
Unity光照黑莫名其妙的偏色问题