简介
【免费下载链接】geGE(Graph Engine)是面向昇腾的图编译器和执行器,提供了计算图优化、多流并行、内存复用和模型下沉等技术手段,加速模型执行效率,减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力,并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge
图编译结果的概要信息。
需要包含的头文件
#include <ge/ge_graph_compile_summary.h>Public成员函数
~CompiledGraphSummary() CompiledGraphSummary &operator=(const CompiledGraphSummary &) & = delete CompiledGraphSummary(const CompiledGraphSummary &) = delete bool IsStatic() const Status GetConstMemorySize(size_t &size) const Status GetFeatureMemorySize(size_t &size) const Status GetFixedFeatureMemorySize(size_t &size) const std::vector<FeatureMemoryPtr> GetAllFeatureMemoryTypeSize() const Status GetRefreshableFeatureMemorySize(size_t &size) const Status GetFeatureMemoryBaseRefreshable (bool &v) const Status GetStreamNum(size_t &num) const Status GetEventNum(size_t &num) const Status GetOutputShapes(std::vector<ge::Shape> &shapes) const Status GetOutputDtypes(std::vector<ge::DataType> &dtypes) const Status GetIOIndexesWithSameAddr(std::vector<std::pair<uint32_t, uint32_t>> &io_indexes) const Status GetExternalWeightPaths(std::vector<ExternalWeightDescPtr> &paths) const Status GetStreamAllocationSummary(std::shared_ptr<StreamAllocationSummary> &stream_allocation) const【免费下载链接】geGE(Graph Engine)是面向昇腾的图编译器和执行器,提供了计算图优化、多流并行、内存复用和模型下沉等技术手段,加速模型执行效率,减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力,并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考