From 2395cbe506676a51cca4290006ffe9337fbe0851 Mon Sep 17 00:00:00 2001 From: chalsliu <45041955+chalsliu@users.noreply.github.com> Date: Thu, 20 Apr 2023 13:32:26 +0800 Subject: [PATCH] Fix open missing mode on jetson (#53019) --- .../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 5df2ec67a6a..1ae64983e0c 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); } } -- GitLab