From 7661daaaeac24d87e5db519aa8c690b9158b1695 Mon Sep 17 00:00:00 2001 From: wanghuajie Date: Wed, 29 Oct 2025 15:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E8=A2=AB=E8=AF=AF=E6=8C=AA?= =?UTF-8?q?=E7=9A=84op=5Fbin=5Finfo.h=E5=A4=B4=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/external/register/op_bin_info.h | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 inc/external/register/op_bin_info.h diff --git a/inc/external/register/op_bin_info.h b/inc/external/register/op_bin_info.h new file mode 100644 index 0000000000..acec7520e8 --- /dev/null +++ b/inc/external/register/op_bin_info.h @@ -0,0 +1,35 @@ +/* Copyright (c) 2025 Huawei Technologies Co., Ltd. + * This file is a part of the CANN Open Software. + * Licensed under CANN Open Software License Agreement Version 1.0 (the "License"). + * Please refer to the License for details. You may not use this file except in compliance with the License. + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, + * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. + * See LICENSE in the root of the software repository for the full text of the License. + * ===================================================================================================================*/ + +#ifndef REGISTER_OP_BIN_INFO_H +#define REGISTER_OP_BIN_INFO_H + +#include +#include +#include +#include "graph/ascend_string.h" + +namespace ops { +using OpInfo = std::vector>; + +class OpBinInfo { +public: + OpBinInfo(const std::string& opType, const OpInfo& opInfo); + ~OpBinInfo(); + uint32_t Generate(ge::AscendString* opLibPath, const std::string& targetPath); + static bool Check(const std::string& path); + +private: + std::string opType_; + std::string basePath_; + const OpInfo& opInfo_; +}; + +} +#endif \ No newline at end of file -- Gitee