[XPU] add interpolate fp16, fix reshape bug, add l3_autotune api. tes…#9259
Merged
zhupengyang merged 1 commit intoPaddlePaddle:developfrom Jul 19, 2022
AlbertVan:my-cool-stuff
Merged
[XPU] add interpolate fp16, fix reshape bug, add l3_autotune api. tes…#9259zhupengyang merged 1 commit intoPaddlePaddle:developfrom AlbertVan:my-cool-stuff
zhupengyang merged 1 commit intoPaddlePaddle:developfrom
AlbertVan:my-cool-stuff
Conversation
|
Thanks for your contribution! |
Collaborator
|
LGTM |
Collaborator
|
LGTM |
| // **DEPRECATED**, use set_xpu_l3_cache_method() in the future | ||
| void set_xpu_workspace_l3_size_per_thread(int l3_size = 0x4000000); | ||
| void set_xpu_l3_cache_method(size_t l3_size, bool locked = false); | ||
| void set_xpu_l3_cache_autotune(bool autotune = true); |
Collaborator
There was a problem hiding this comment.
是公开api吗,公开api 需要补到C++ 文档中
Collaborator
There was a problem hiding this comment.
并补充相关单测到paddle_api_test.cc中
Collaborator
There was a problem hiding this comment.
相关的python API 需要考虑是否补充
Contributor
Author
There was a problem hiding this comment.
收到,该接口的使用说明在下个pr中补充
Collaborator
|
LGTM |
| std::vector<LoD> last_input_lods_{}; | ||
| std::vector<DDimLite> last_output_shapes_{}; | ||
| std::vector<LoD> last_output_lods_{}; | ||
| // last shape tensor vector cache. |
Collaborator
There was a problem hiding this comment.
std::vector<DDimLite> last_input_shapes_{};
std::vector<LoD> last_input_lods_{};
std::vector<DDimLite> last_output_shapes_{};
std::vector<LoD> last_output_lods_{};子类里为什么要重新声明这四个成员变量,为什么不直接使用 OperatorBase 基类里声明的同名变量
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.
…t=develop