From 74ec19932a72822d6b054367a453d1a969e3a436 Mon Sep 17 00:00:00 2001 From: Yuanle Liu Date: Mon, 29 May 2023 20:45:54 +0800 Subject: [PATCH] int fd = open(shape_range_info_path.c_str(), O_WRONLY | O_CREAT, 0644); (#54166) --- .../inference/analysis/ir_passes/tensorrt_subgraph_pass.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3ad64fe5398..79876c0f4f8 100644 --- a/paddle/fluid/inference/analysis/ir_passes/tensorrt_subgraph_pass.cc +++ b/paddle/fluid/inference/analysis/ir_passes/tensorrt_subgraph_pass.cc @@ -434,7 +434,7 @@ std::string TensorRtSubgraphPass::CreateTensorRTOp( &max_shape_tensor, &opt_shape_tensor); } else { - int fd = open(shape_range_info_path.c_str(), O_RDONLY | O_CREAT, 0644); + int fd = open(shape_range_info_path.c_str(), O_WRONLY | O_CREAT, 0644); close(fd); } } -- GitLab