-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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]Clean some include and polish load program code #43798
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/fluid/jit/function_schema.cc
Outdated
} | ||
|
||
const std::vector<std::string> FunctionInfo::GetOutputArgNames() const { | ||
return schema_.GetOutputArgNames(); | ||
void FunctionInfo::RemoveFeedFetch() { |
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.
RemoveFeedFetch 这个函数不适合放到 function_schema.cc 中,可以放到训练框架里
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.
将提到的几个函数移动到了utils文件内,感谢
paddle/fluid/jit/serializer.cc
Outdated
@@ -62,6 +76,11 @@ bool Deserializer::IsPersistable(framework::VarDesc* desc_ptr) { | |||
return desc_ptr->Persistable(); | |||
} | |||
|
|||
bool Deserializer::StartWith(const std::string& str, |
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.
StartWith, EndsWith, ReplaceAll,PdmodelFilePaths这一类应该是属于utils函数,不应该是某个类的成员函数
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
PR types
Others
PR changes
Others
Describe
[JitLayer]Clean some include and polish load program code
dirname/file_prefix
与jit.load保持一致