diff --git a/tools/infer/utility.py b/tools/infer/utility.py index cad1a01736ee0d1df98923fb208c2734c964104c..04214016926442b88133f281c5712bda4c73285b 100755 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -129,7 +129,8 @@ def create_predictor(args, mode, logger): #config.set_mkldnn_op({'conv2d', 'depthwise_conv2d', 'pool2d', 'batch_norm'}) args.rec_batch_num = 1 - # config.enable_memory_optim() + # enable memory optim + config.enable_memory_optim() config.disable_glog_info() config.delete_pass("conv_transpose_eltwiseadd_bn_fuse_pass")