一、安装onnxruntime库 地址:https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-linux-x64-gpu-1.15.1.tgz 二、解压至指定文件夹 三、调用自定义算子cpp文件 命名为:custom_op.cc /* * SPDX-License-Identifier: Apache-2.0 */ #include "custom_op.h" #