
简介【免费下载链接】geGEGraph Engine是面向昇腾的图编译器和执行器提供了计算图优化、多流并行、内存复用和模型下沉等技术手段加速模型执行效率减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge表示ES API的C风格的输出类型C用户构图调用esb_funcs.h接口即可C用户调用EsTensorHolder的类的对外接口即可。需要包含的头文件#include es_c_tensor_holder.hPublic成员函数EsCTensorHolder(EsCGraphBuilder owner, const ge::GNode producer, int32_t index) ~EsCTensorHolder() EsCTensorHolder(EsCTensorHolder ) noexcept EsCTensorHolder operator(EsCTensorHolder ) noexcept ge::Status SetDataType(const ge::DataType data_type) ge::Status SetFormat(const ge::Format format) ge::Status SetOriginFormat(const ge::Format format) ge::Status SetStorageFormat(const ge::Format format) ge::Status SetOriginShape(const ge::Shape shape) ge::Status SetStorageShape(const ge::Shape shape) ge::Status SetShape(const ge::Shape shape) ge::Status SetOriginSymbolShape(const char *const *shape_str, const int64_t shape_str_num) ge::GNode GetProducer() int32_t GetOutIndex() const EsCGraphBuilder GetOwnerBuilder()【免费下载链接】geGEGraph Engine是面向昇腾的图编译器和执行器提供了计算图优化、多流并行、内存复用和模型下沉等技术手段加速模型执行效率减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考