set enable_runtime_context_cache_ default false

test=develop
revert-16190-refine_parallel_executor
luotao1 6 years ago
parent 46ee6bb1aa
commit 5ecdc49c6b

@ -205,8 +205,6 @@ void AnalysisConfig::Update() {
// Append after the Affine_channel_conv_fuse pass.
pass_builder()->InsertPass(3, "tensorrt_subgraph_pass");
}
// runtime_context_cache isn't fit for tensorrt.
enable_runtime_context_cache_ = false;
}
if (use_mkldnn_) {

@ -278,7 +278,7 @@ struct AnalysisConfig {
// since the input/output names of this Op do not change in the execution,
// RuntimeContext could be created only at the first iteration of this Op's
// execution to save the elapsed time.
bool enable_runtime_context_cache_{true};
bool enable_runtime_context_cache_{false};
// A runtime cache, shouldn't be transferred to others.
std::string serialized_info_cache_;

@ -107,6 +107,7 @@ void SetConfig(AnalysisConfig *cfg) {
cfg->DisableGpu();
cfg->SwitchSpecifyInputNames();
cfg->SwitchIrOptim();
cfg->SwitchRuntimeContextCache();
if (FLAGS_zero_copy) {
cfg->SwitchUseFeedFetchOps(false);
}

Loading…
Cancel
Save