CANN/ge GNode图节点API文档

发布时间:2026/9/10 14:48:20

CANN/ge GNode图节点API文档 简介【免费下载链接】geGEGraph Engine是面向昇腾的图编译器和执行器提供了计算图优化、多流并行、内存复用和模型下沉等技术手段加速模型执行效率减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge用户构造Graph的节点数据。需要包含的头文件#include graph/gnode.hPublic成员函数GNode() ~ GNode() default graphStatus GetAttr(const AscendString name, int64_t attr_value) const graphStatus GetAttr(const AscendString name, int32_t attr_value) const graphStatus GetAttr(const AscendString name, uint32_t attr_value) const graphStatus GetAttr(const AscendString name, float32_t attr_value) const graphStatus GetAttr(const AscendString name, AscendString attr_value) const graphStatus GetAttr(const AscendString name, bool attr_value) const graphStatus GetAttr(const AscendString name, Tensor attr_value) const graphStatus GetAttr(const AscendString name, std::vectorint64_t attr_value) const graphStatus GetAttr(const AscendString name, std::vectorint32_t attr_value) const graphStatus GetAttr(const AscendString name, std::vectoruint32_t attr_value) const graphStatus GetAttr(const AscendString name, std::vectorfloat32_t attr_value) const graphStatus GetAttr(const AscendString name, std::vectorAscendString attr_values) const graphStatus GetAttr(const AscendString name, std::vectorbool attr_value) const graphStatus GetAttr(const AscendString name, std::vectorTensor attr_value) const graphStatus GetAttr(const AscendString name, OpBytes attr_value) const graphStatus GetAttr(const AscendString name, std::vectorstd::vectorint64_t attr_value) const graphStatus GetAttr(const AscendString name, std::vectorge::DataType attr_value) const graphStatus GetAttr(const AscendString name, ge::DataType attr_value) const graphStatus GetAttr(const AscendString name, AttrValue attr_value) const graphStatus GetALLSubgraphs(std::vectorGraphPtr graph_list) const graphStatus GetDynamicInputIndexesByName(const AscendString name, std::vectorint32_t indexes) graphStatus GetDynamicOutputIndexesByName(const AscendString name, std::vectorint32_t indexes) std::vectorGNodePtr GetInControlNodes() const std::pairGNodePtr, int32_t GetInDataNodesAndPortIndexs(const int32_t index) const graphStatus GetInputAttr(const AscendString name, uint32_t input_index, AttrValue attr_value) const graphStatus GetInputConstData(const int32_t index, Tensor data) const graphStatus GetInputDesc(const int32_t index, TensorDesc tensor_desc) const graphStatus GetInputIndexByName(const AscendString name, int32_t index) size_t GetInputsSize() const graphStatus GetName(ge::AscendString name) const std::vectorGNodePtr GetOutControlNodes() const std::vectorstd::pairGNodePtr, int32_t GetOutDataNodesAndPortIndexs(const int32_t index) const graphStatus GetOutputAttr(const AscendString name, uint32_t output_index, AttrValue attr_value) const; graphStatus GetOutputIndexByName(const AscendString name, int32_t index) graphStatus GetOutputDesc(const int32_t index, TensorDesc tensor_desc) const size_t GetOutputsSize() const graphStatus GetSubgraph(uint32_t index, GraphPtr graph) const graphStatus GetType(ge::AscendString type) const bool HasAttr(const AscendString name) graphStatus SetAttr(const AscendString name, int64_t attr_value) const graphStatus SetAttr(const AscendString name, int32_t attr_value) const graphStatus SetAttr(const AscendString name, uint32_t attr_value) const graphStatus SetAttr(const AscendString name, float32_t attr_value) const graphStatus SetAttr(const AscendString name, AscendString attr_value) const graphStatus SetAttr(const AscendString name, bool attr_value) const graphStatus SetAttr(const AscendString name, Tensor attr_value) const graphStatus SetAttr(const AscendString name, std::vectorint64_t attr_value) const graphStatus SetAttr(const AscendString name, std::vectorint32_t attr_value) const graphStatus SetAttr(const AscendString name, std::vectoruint32_t attr_value) const graphStatus SetAttr(const AscendString name, std::vectorfloat32_t attr_value) const graphStatus SetAttr(const AscendString name, std::vectorAscendString attr_values) const graphStatus SetAttr(const AscendString name, std::vectorbool attr_value) const graphStatus SetAttr(const AscendString name, std::vectorTensor attr_value) const graphStatus SetAttr(const AscendString name, OpBytes attr_value) const graphStatus SetAttr(const AscendString name, std::vectorstd::vectorint64_t attr_value) const graphStatus SetAttr(const AscendString name, std::vectorge::DataType attr_value) const graphStatus SetAttr(const AscendString name, ge::DataType attr_value) const graphStatus SetAttr(const AscendString name, AttrValue attr_value) const graphStatus SetInputAttr(const AscendString name, uint32_t input_index, const AttrValue attr_value) graphStatus SetOutputAttr(const AscendString name, uint32_t output_index, const AttrValue attr_value) graphStatus UpdateInputDesc(const int32_t index, const TensorDesc tensor_desc) graphStatus UpdateOutputDesc(const int32_t index, const TensorDesc tensor_desc)【免费下载链接】geGEGraph Engine是面向昇腾的图编译器和执行器提供了计算图优化、多流并行、内存复用和模型下沉等技术手段加速模型执行效率减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
延伸阅读

更多相关文章

2026/9/10 15:43:35

SpringBoot驾校学员管理系统设计与实现

1. 项目概述:SpringBoot驾校学员管理系统设计与实现 去年帮朋友驾校做信息化改造时,发现市面上多数学员管理系统要么功能冗余要么操作复杂。于是基于SpringBoot设计了一套轻量级解决方案,从报名到拿证全流程数字化管理,特别适合中…

2026/9/10 15:43:34

锂枝晶抑制与电池隔膜优化技术解析

1. 锂枝晶生长机制与电池安全痛点锂金属负极因其极高的理论比容量(3860 mAh/g)和最低的电极电位(-3.04 V vs. SHE)被视为下一代高能量密度电池的"圣杯"。但在实际应用中,锂枝晶的生长问题就像一把悬在头顶的…

2026/9/10 15:43:34

PHP协程调度器原理与Swoole高性能实现

1. PHP协程调度器实现原理与核心价值在传统PHP开发中,阻塞式I/O操作一直是性能瓶颈的根源。当我们需要处理高并发请求时,通常会采用多进程或多线程方案,但这会带来显著的内存开销和上下文切换成本。PHP协程调度器的出现,本质上是通…

2026/9/10 15:38:34

龙珠数字藏品与游戏模组的技术实现与市场分析

1. 项目背景解析 "dragonballz_e209-2"这个看似神秘的代号,实际上蕴含着丰富的文化基因和技术内涵。作为一名长期关注二次元文化和技术交叉领域的从业者,我首次看到这个命名时就意识到它可能代表着某种融合了经典动漫元素与现代技术理念的创新…

2026/9/9 13:11:35

超人会飞不算本事:系统稳定依赖清晰规则与边界设计

开头先不绕弯子。“#斯坦李吐槽dc 所以超人是无缘无故会飞的嘛哈哈哈哈哈哈哈锤哥真是技术人才啊!#雷神 #复联”这类调侃式短标题,第一波冲击力在于它把两个宇宙的角色塞进同一个吐槽箱里,但细想一下就能发现,它真正碰到的根本不是…

2026/9/10 11:16:38

超人VS蜘蛛侠:拆解超级IP的影响力与传播方法论

把“蜘蛛侠 vs 超人”放在 CSDN 上聊,可能很多人第一反应是走错片场了。但如果把这两个角色看成“两个持续运营了 80 多年的文化产品”,你会发现,这场比较本质上是两个不同 IP 策略的长期结果对比:超人赢在定义了整个超级英雄题材…

2026/9/9 16:31:09

基于CNN的调制信号识别:MATLAB实现时频图分类实战

简介:本资源是一套面向通信工程与信号处理方向学习者、研究者的深度学习实践方案,聚焦调制信号自动检测与识别这一典型无线通信任务,解决传统方法依赖人工特征、低信噪比下性能下降等痛点。压缩包共12个文件(10.73MB)&…

2026/9/10 0:00:55

目录对比去重实战:用哈希算法精准清理重复文件

我电脑里现在还有一块换了三次机的“数据墓地”硬盘,里面存着2016年以前所有旧笔记本的完整备份。平时不觉得有什么,直到前阵子想把它整理归档,发现同一个安装包、同一批照片、同一份论文草稿,在几个不同的备份目录里反复出现。更…

2026/9/10 0:00:55

Leaflet离线地图完整Demo合集:内网部署与坐标纠偏实战

简介:这是一份面向Web GIS开发者的LeafLet离线地图示例合集,帮助开发者快速掌握离线地图从搭建到交互的完整流程。压缩包共723个文件,大小14.06MB,以319个js脚本、175个html页面和29个css样式文件为主体,配合png/svg图…

2026/9/10 0:00:55

MATLAB读取Rinex 3.02观测文件:多系统GNSS数据解析实战

简介:基于MATLAB开发的Rinex3.02版观测文件(o文件)读取代码包,面向卫星定位导航方向的学习者与研究人员,用于解决新版观测文件的数据解析、历元提取与时间转换问题。压缩包共4个文件,包含两个m脚本、一个19…

2026/9/10 12:32:02

USB Type-C PCB布局分区设计:电源、高速信号与PD协议全攻略

做硬件这行,Type-C接口算是典型的“看着简单,做起来全坑”的东西。光引脚就24个,高低速信号、电源、控制线全部塞在一个小小的连接器里,如果PCB布局不做规划,打样回来基本就是“插上没反应”、“高速掉线”、“静电一打…

2026/9/10 15:19:50

系统编程学习原型如何补齐稳定性边界

系统编程学习原型如何补齐稳定性边界预算有限时&#xff0c;我先优化明显多余的复制&#xff0c;而不是猜测性地换容器。用借用传递只读数据通常就能减少分配&#xff1a; fn parse(line: &str) -> Result<Item, Error> { /* ... */ }用基准确认热点确实在分配&am…

2026/9/9 10:21:54

雨花区哪家财务公司代理记账比较好?

在雨花区&#xff0c;企业处理财税事务常常面临诸多挑战&#xff0c;选择一家靠谱的财务公司至关重要。湖南巨勤财务管理咨询有限公司就是本地正规实体财税服务机构&#xff0c;深耕本地工商财税行业多年&#xff0c;熟悉当地工商局、税务局最新政策与申报流程。主营公司注册、…

还想了解更多?直接咨询顾问

免费诊断 + 免费方案 + 透明报价。

全国咨询热线400-8866-253
免费获取方案
咨询二维码