昇腾社区首页
中文
注册
开发者
下载

图引擎

本节中的${install_path}请替换为CANN软件安装路径。如下以安装Ascend-cann-toolkit举例。

删除特性

  • UDF不再提供tprt能力,相关接口下线,删除${install_path}/ascend-toolkit/latest/include/flow_func/udf_tprt.h头文件。
  • DataFlow运行图的部分接口下线,删除${install_path}/ascend-toolkit/latest/include/ge/ge_continuous_tensor_list_api.h头文件以及${install_path}/ascend-toolkit/latest/include/ge/ge_api.h中的如下两个接口:
    • Status RunGraph(uint32_t graph_id, const ContinuousTensorList &inputs, std::vector<Tensor> &outputs)。
    • Status RunGraphAsync(uint32_t graph_id, const ContinuousTensorList &inputs, RunAsyncCallback callback)。
  • DataFlow大模型切分能力不再提供,如下相关接口下线:
    • Status GetModelDistributeDesc(const void *data, const uint64_t length, ModelDistibuteDesc &model_dist_desc)。
    • Status LoadGraph(const uint32_t graph_id, const std::map<std::string, std::string> &options, const std::string &om_file_path) const。
    • graphStatus aclgrphBuildModel(const std::vector<ge::Graph> &graphs,const std::map<std::string, std::string> &build_options, ModelBufferData &model)。
    • graphStatus aclgrphBuildModel(const std::vector<ge::Graph> &graphs, const std::map<AscendString, AscendString> &build_options, ModelBufferData &model)。

废弃特性

下表中所示的目录计划在2026.12.30之后的版本删除。

表1 废弃特性及其替换方案

废弃的目录

替换的目录

${install_path}/ascend-toolkit/latest/runtime/include/graph

${install_path}/cann/include/graph

${install_path}/ascend-toolkit/latest/compiler/python/func2graph

${install_path}/cann/x86_64-linux/python目录下的func2graph