Skip to content

Commit 0ed95bc

Browse files
committed
fix pass and convert_op for preln_ernie and add preln_ernie'flag in pass
1 parent 5955a4e commit 0ed95bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/inference/analysis/ir_pass_manager.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ void IRPassManager::CreatePasses(Argument *argument,
198198
pass->Set("lite_ops_filter",
199199
new std::vector<std::string>(argument->lite_ops_filter()));
200200
pass->Set("predictor_id", new int(argument->predictor_id()));
201+
pass->Erase("enable_int8");
201202
pass->Set("enable_int8", new bool(lite_enable_int8));
202203
pass->Set("use_gpu", new bool(argument->use_gpu()));
203204
pass->Set("zero_copy", new bool(argument->lite_zero_copy()));

0 commit comments

Comments
 (0)