|
|
@ -131,6 +131,9 @@ AnalysisConfig::AnalysisConfig(const AnalysisConfig &other) {
|
|
|
|
// profile related.
|
|
|
|
// profile related.
|
|
|
|
CP_MEMBER(with_profile_);
|
|
|
|
CP_MEMBER(with_profile_);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// glog related.
|
|
|
|
|
|
|
|
CP_MEMBER(with_glog_info_);
|
|
|
|
|
|
|
|
|
|
|
|
// Ir related.
|
|
|
|
// Ir related.
|
|
|
|
CP_MEMBER(enable_ir_optim_);
|
|
|
|
CP_MEMBER(enable_ir_optim_);
|
|
|
|
CP_MEMBER(use_feed_fetch_ops_);
|
|
|
|
CP_MEMBER(use_feed_fetch_ops_);
|
|
|
@ -382,6 +385,8 @@ std::string AnalysisConfig::SerializeInfoCache() {
|
|
|
|
|
|
|
|
|
|
|
|
ss << with_profile_;
|
|
|
|
ss << with_profile_;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ss << with_glog_info_;
|
|
|
|
|
|
|
|
|
|
|
|
ss << enable_ir_optim_;
|
|
|
|
ss << enable_ir_optim_;
|
|
|
|
ss << use_feed_fetch_ops_;
|
|
|
|
ss << use_feed_fetch_ops_;
|
|
|
|
ss << ir_debug_;
|
|
|
|
ss << ir_debug_;
|
|
|
@ -458,6 +463,11 @@ void AnalysisConfig::EnableProfile() {
|
|
|
|
Update();
|
|
|
|
Update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void AnalysisConfig::DisableGlogInfo() {
|
|
|
|
|
|
|
|
with_glog_info_ = false;
|
|
|
|
|
|
|
|
Update();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void AnalysisConfig::EnableAnakinEngine(
|
|
|
|
void AnalysisConfig::EnableAnakinEngine(
|
|
|
|
int max_batch_size, std::map<std::string, std::vector<int>> max_input_shape,
|
|
|
|
int max_batch_size, std::map<std::string, std::vector<int>> max_input_shape,
|
|
|
|
int min_subgraph_size, AnalysisConfig::Precision precision_mode,
|
|
|
|
int min_subgraph_size, AnalysisConfig::Precision precision_mode,
|
|
|
|