DataFlow Execution API Overview

This document describes model execution APIs. The corresponding header files are stored in the ${INSTALL_DIR}/include/ge directory.

Replace ${INSTALL_DIR} with the CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.

API Category

Header File Path

Function

Matching Library File

Graph Running APIs

ge_api.h

Inputs data to the DataFlow graph and obtains the execution result of the DataFlow model.

libge_runner.so libdavinci_executor.so libgraph_base.so

Data Type

ge_data_flow_api.h

Allows users to set and obtain member variables in DataFlowInfo.

If the DataFlowInfo data type is compiled individually, you are advised to add the -Wl,--no-as-needed option to ensure that the dependent .so symbols are completely loaded during compilation.

libdavinci_executor.so libge_runner.so