-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[JitLayer]Split layer_utils.cc and polish interface BaseFunction #43754
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
return schema_.GetInputArgNames(); | ||
} | ||
|
||
const std::vector<std::string> FunctionInfo::GetOutputArgNames() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后续我们可以把Get前缀去掉,因为API名字太长了
#include "paddle/fluid/framework/program_desc.h" | ||
#include "paddle/phi/core/enforce.h" | ||
|
||
#include "paddle/fluid/jit/layer_utils.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该不需要依赖layer_utils.h 头文件?
paddle/fluid/jit/layer.cc
Outdated
function_dict[func_names[i]] = std::make_shared<ExectorFunction>( | ||
program_descs[i], param_names_for_each_program[i], params_dict, place); | ||
function_dict_[infos[i]->GetFunctionName()] = | ||
std::make_shared<ExectorFunction>(infos[i], params_dict_, place); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里我们是默认创建了ExecutorFuntion,后续统一到CompilationUnit后,我们可以Lazy模式创建这些执行引擎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…dlePaddle#43754) * Split layer_utils.cc and polish interface BaseFunction * Polish include * Fix cmake for funciton_schema * Using unordered_map replace map and rename VariableNameMap * Polish Layer Constructor and remove useless include * Refine compilation_unit
PR types
Others
PR changes
Others
Describe
[JitLayer]Split layer_utils.cc and polish interface BaseFunction