* Copyright (c) 2025 Huawei Technologies Co., Ltd.
* This program is free software, you can redistribute it and/or modify it under the terms and conditions of
* CANN Open Software License Agreement Version 2.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 FUSION_ENGINE_OPTIMIZER_ITF_HANDLER_ITF_HANDLER_H_
#define FUSION_ENGINE_OPTIMIZER_ITF_HANDLER_ITF_HANDLER_H_
#include <map>
#include <memory>
#include "common/fe_inner_error_codes.h"
#include "common/opskernel/ops_kernel_info_store.h"
#include "common/optimizer/graph_optimizer.h"
#include "common/util/op_info_util.h"
using OpsKernelInfoStorePtr = std::shared_ptr<ge::OpsKernelInfoStore>;
using GraphOptimizerPtr = std::shared_ptr<ge::GraphOptimizer>;
extern "C" {
* to invoke the Initialize function of FusionManager
* param[in] the options of init
* return Status(SUCCESS/FAILED)
*/
fe::Status Initialize(const std::map<string, string> &options);
* to invoke the Finalize function to release the source of fusion manager
* return Status(SUCCESS/FAILED)
*/
fe::Status Finalize();
* to invoke the same-name function of FusionManager to get the information of OpsKernel InfoStores
* param[out] the map of OpsKernel InfoStores
*/
void GetOpsKernelInfoStores(std::map<string, OpsKernelInfoStorePtr> &op_kern_infos);
* to invoke the same-name function of FusionManager to get the information of Graph Optimizer
* param[out] the map of Graph Optimizer
*/
void GetGraphOptimizerObjs(std::map<string, GraphOptimizerPtr> &graph_optimizers);
}
#endif