[LITE][NPU][XPU] Refine subgraph pass, and support NPU/XPU model generation at execution time#2576
Merged
hong19860320 merged 15 commits intoDec 13, 2019
Conversation
…ubgraph pass to support build NPU/XPU model during kernel execution phase test=develop
…into hongming/support_runtime
…into hongming/support_runtime
…into hongming/support_runtime
…mize_tool test=develop
Superjomn
reviewed
Dec 11, 2019
Superjomn
previously approved these changes
Dec 11, 2019
Contributor
Superjomn
left a comment
There was a problem hiding this comment.
执行时做图优化,总体上与lite的设计不一致,因为会带来未知的动态性
但npu接口不一致的话也没有办法,也算是npu sdk本身的设计问题
需要注意部署库的大小
Collaborator
Author
目前这个方案取了平衡,图优化(即子图生成)仍然在分析阶段做,只是将子图转为目标设备的模型这个步骤放在执行阶段,目的是根据设备特点动态生成目标设备的模型以保证兼容性,同时由于目标设备模型的生成和输入尺寸强绑定,因此执行阶段生成目标设备的模型是合理的。 对于不支持NPU/XPU的部署库libpaddle_lite_jni.so大小无影响。针对支持NPU的部署库libpaddle_lite_jni.so增量约为60KB。 |
…npu to fix the compiling error on tiny publish mode test=develop
Collaborator
Author
|
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
sangoly
reviewed
Dec 11, 2019
…place test=develop
…raph op test=develop
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.
背景问题:
解决办法:
其它改动: