【开源实习】香橙派github仓中的在线推理案例05-ShuffleNet基于PyNative模式改写成以mint接口实现#107
Open
ym628 wants to merge 2 commits into
Open
【开源实习】香橙派github仓中的在线推理案例05-ShuffleNet基于PyNative模式改写成以mint接口实现#107ym628 wants to merge 2 commits into
ym628 wants to merge 2 commits into
Conversation
Contributor
|
部分方法没有修改成mint接口,包括但不限于nn.BatchNorm2d,nn.Conv2d等,需要再排查一遍以确保全部可以替换的均替换成mint接口实现。 |
Contributor
|
案例中“运行环境设置”部分不必要的设置还是没有删除,尤其要求是动态图模式下执行该案例,只需要保留混合精度的设置ascend.op_precision.precision_mode("allow_mix_precision")。 |
Contributor
|
目录orange-pi-mindspore,orange-pi-mindspore/Online, orange-pi-mindspore/Online/inference下的readme中均需修改案例版本信息 |
Contributor
|
mindspore.mint.transpose(x, 2, 1)在CANN 8.1.RC1中会提示缺少算子,在CANN 8.1.RC1.beta1中可以正常运行--------针对这个问题transpose接口保持原接口实现即可 |
Author
Contributor
|
修改nn.BatchNorm2d以后会影响精度---针对这个问题,基于nn.BatchNorm2d和mint.nn.BatchNorm2d构造下单算子用例,然后同样的输入,开确定性,比一下输出 |
Contributor
|
验收通过,可以合入 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


任务
任务编号:#ICJ91O
任务链接:【开源实习】香橙派github仓中的在线推理案例05-ShuffleNet基于PyNative模式改写成以mint接口实现
版本信息:
Python 3.9 + MindSpore 2.6.0 + CANN 8.1.RC1
OrangePi AiPro 8G 8T
实现内容:
香橙派github仓中在线推理案例 05-ShuffleNet 基于MindSpore2.6.0的PyNative模式下可以在香橙派开发板正常流畅运行。
推理正常:

补充:

mindspore.mint.transpose(x, 2, 1)在CANN 8.1.RC1中会提示缺少算子,在CANN 8.1.RC1.beta1中可以正常运行