diff --git a/paddle/fluid/inference/analysis/ir_passes/tensorrt_subgraph_pass.cc b/paddle/fluid/inference/analysis/ir_passes/tensorrt_subgraph_pass.cc index 5df2ec67a6a4b7111540e6f2a198f8ff56f6b51f..1ae64983e0cc27f009d41bcd374c77052d1edfca 100644 --- a/paddle/fluid/inference/analysis/ir_passes/tensorrt_subgraph_pass.cc +++ b/paddle/fluid/inference/analysis/ir_passes/tensorrt_subgraph_pass.cc @@ -378,7 +378,7 @@ void TensorRtSubgraphPass::CreateTensorRTOp( &max_shape_tensor, &opt_shape_tensor); } else { - int fd = open(shape_range_info_path.c_str(), O_RDONLY | O_CREAT); + int fd = open(shape_range_info_path.c_str(), O_RDONLY | O_CREAT, 0644); close(fd); } }