-
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
modify API for serializing engine info #56952
modify API for serializing engine info #56952
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
… serialize_engine_info
… serialize_engine_info
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
"engine_info_" + engine_key + ".json"; | ||
LOG(INFO) << "Serialize engine info to " << engine_info_path; | ||
} | ||
op_desc->SetAttr("use_inspector", use_inspector); |
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.
use_inspector其他位置是不是已经set过了
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.
从之前的位置移动到这里,与inspector_serialize的功能放在一起
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
* modify API for serializing engine info
* modify API for serializing engine info
PR types
Others
PR changes
Others
Description
Pcard-71501
本PR实现了
EnableTensorRtInspector
API序列化engine info的功能使用示例:
config.EnableTensorRtInspector(true);
engine info保存在engine_info_开头的json文件中。
缺省行为和之前一致,engine info打印到终端。