mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
polish code with new pre-commit rule (#2923)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
// Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
|
||||
//
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
std::vector<paddle::Tensor> ShareExternalData(paddle::Tensor& input,
|
||||
const std::string shm_name,
|
||||
const std::vector<int>& shape) {
|
||||
const std::vector<int>& shape) {
|
||||
volatile shmStruct *shm = NULL;
|
||||
sharedMemoryInfo info;
|
||||
if (sharedMemoryOpen(shm_name.c_str(), sizeof(shmStruct), &info) != 0) {
|
||||
@@ -62,4 +62,4 @@ PD_BUILD_STATIC_OP(share_external_data)
|
||||
.Inputs({"input"})
|
||||
.Outputs({"output"})
|
||||
.Attrs({"shm_name: std::string", "shape: std::vector<int>"})
|
||||
.SetKernelFn(PD_KERNEL(ShareExternalData));
|
||||
.SetKernelFn(PD_KERNEL(ShareExternalData));
|
||||
|
||||
Reference in New Issue
Block a user