Replace
【免费下载链接】geGE(Graph Engine)是面向昇腾的图编译器和执行器,提供了计算图优化、多流并行、内存复用和模型下沉等技术手段,加速模型执行效率,减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力,并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge
产品支持情况
头文件/库文件
- 头文件:#include <ge/fusion/graph_rewriter.h>
- 库文件:libge_compiler.so
功能说明
给定SubgraphBoundary,将边界内算子替换为replacement。
函数原型
static Status Replace(const SubgraphBoundary &subgraph, const Graph &replacement) static Status Replace(const SubgraphBoundary &subgraph, Graph &&replacement) static Status Replace(const SubgraphBoundary &subgraph, Graph &&replacement, CustomPassContext &ctx)参数说明
返回值说明
约束说明
无
【免费下载链接】geGE(Graph Engine)是面向昇腾的图编译器和执行器,提供了计算图优化、多流并行、内存复用和模型下沉等技术手段,加速模型执行效率,减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力,并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考