当前位置:网站首页>【网络迁移】Pytorch中的F.interpolate对应MindSpore哪个方法
【网络迁移】Pytorch中的F.interpolate对应MindSpore哪个方法
2022-08-10 03:28:00 【小乐快乐】
请问,在做mindspore模型迁移时,(self.reduce(base_feats[0]), F.interpolate(self.up_reduce(base_feats[1]),scale_factor=2,mode='nearest')) 里面的F.interpolate函数在mindspores上替换哪个函数呀?我想用mindspore.ops.ResizeNearestNeighbor函数,但是它里面没有scale_factor的参数,应该怎那么处理呀?
【截图信息】

可以考虑下使用 MindSpore 的 nn.ResizeBilinear 接口。
边栏推荐
猜你喜欢
随机推荐
Qt 线程常用同步方式
如何快速成为一名软件测试工程师?测试员月薪15k需要什么技术?
【科研绘图】琴图 +箱型图混合 matplotlib库和seabsorn库的使用
TCP协议之《ACK pingpong交互模式详解》
测试常见问题100类(1)
ARP Spoofing - Tutorial Details
电话自动拨号在电脑上自动拨打
程序国际化
使用flink-sql写入mysql的时候,只指定插入的字段,但是会报错id字段错误,没有默认值,创
goland控制台显示重叠问题解决方案
leetcode-218.天际线问题
【Verilog数字系统设计(夏雨闻)5-------模块的结构、数据类型、变量和基本运算符号1】
有关视频传输时粘包问题的一些解决方法
Take you to an in-depth understanding of the version update of 3.4.2, what does it bring to users?
Small program subcontracting and subcontracting pre-download
Leetcode 47 全排列Ⅱ
小程序wxs
驱动程序开发:按键中断之异步通知
maya图片如何导入
Flink Table&Sql API使用遇到的问题总结








