-
Notifications
You must be signed in to change notification settings - Fork 38
【开源实习】香橙派github仓中的在线推理案例03-ViT基于PyNative模式改写成以mint接口实现 #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
部分方法没有修改成mint接口,包括但不限于nn.Dense,nn.Conv2d, nn.Dropout等,需要再排查一遍以确保全部可以替换的均替换成mint接口实现。 |
|
目录orange-pi-mindspore,orange-pi-mindspore/Online, orange-pi-mindspore/Online/inference下的readme中均需修改案例版本信息** |
|
from mindspore import mint as F 不要写成这样,写成from mindspore import mint 即可。后续修改的接口直接用mint.xxx表示 |
已经尝试过替换,具体报错如下: 具体报错与复现条件A.
|
|
另外开一个notebook分别单独执行官网中的接口mint.nn.Conv2d,mint.nn.Linear, mint.nn.Dropout,查看是否能够执行通过;对比案例中mint.nn.Dropout与 mint.Linear/Conv2d 组合使用时的结果。如果接口单独可以执行通过,联合使用无法通过时,在mindspore的gitee代码仓提issue,提供issue链接即可 |
Issue 链接: https://gitee.com/mindspore/mindspore/issues/ID4TRP?from=project-issue |




任务编号:ICJ93I

任务链接:【开源实习】香橙派github仓中的在线推理案例03-ViT基于PyNative模式改写成以mint接口实现
环境:Python 3.9 + MindSpore 2.6.0 + CANN 8.1.RC1 + OrangePi AiPro 8G 8T (ubuntu-22.04)
推理结果: