CANN/ge GNode图节点API文档

发布时间:2026/10/29 12:27:26

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/10/29 12:25:29

马尾辫技术拆解:发根倒梳、固定与碎发处理全流程

1. 马尾辫这个看似简单的事,其实门道不少ponytail,马尾辫,可能是全世界出现频率最高的发型,没有之一。从幼儿园小姑娘到通勤上班族,从健身房到红毯,马尾辫几乎覆盖了所有年龄层和场景。但恰恰因为它太常见&…

2026/10/29 12:25:29

Material UI滑动选择器样式深度定制指南

1. 项目背景与需求分析 最近在开发一个数据可视化后台时,发现系统原生的滑动选择器(Slider)组件样式过于单调,与整体UI设计风格不协调。经过调研发现,Material UI提供的Slider组件虽然功能完善,但默认样式在以下场景存在不足&…

2026/10/29 12:25:29

大模型:AI时代的操作系统与开发范式变革

1. 大模型:AI时代的操作系统革命 去年第一次用ChatGPT写代码时,我就被它的"思考能力"震惊了。它不仅能理解模糊的需求描述,还能自动补全整个函数实现——这完全颠覆了传统编程工具的使用体验。这种能力的背后,正是大模型…

2026/10/29 12:25:29

强化学习在出行服务调度中的动态优化实践

1. 项目概述:当出行服务遇上强化学习 去年夏天,我在为某出行平台做效率优化咨询时,遇到一个典型难题:早晚高峰时段,平台既需要保障司机收入,又要控制乘客等待时间,还要应对突发天气变化。传统静…

2026/10/29 12:25:29

ponytail 插件实战:从安装到自动化工作流搭建

ponytaill 插件实战:从安装到自动化工作流搭建 说实话,第一次听说 ponytail 这个插件工具时,我以为是哪个开源作者在取名上偷了懒——马尾巴?皮筋?直到真正用了几天,才发现这东西解决的是我工作中最头疼的重…

2026/10/29 12:20:29

ico小头像设置全攻略:从PNG到多尺寸ICO的转换、应用与避坑指南

简介:这份资源是一份关于ico小头像(favicon)设置的入门教程文档,主要面向需要为网站添加浏览器图标标识的站长、前端开发者和网站运营人员。文档从favicon的起源与作用讲起,说明其在品牌展示和用户体验中的价值&#x…

2026/10/28 14:42:12

全国计算机二级C语言真题PDF高效刷题指南

简介:这份PDF是全国计算机二级C语言考试的试题与答案解析,专为备考二级C语言的考生准备。内容涵盖C语言特点与设计理念、程序基本组成单位、main函数执行流程、函数嵌套调用规则、标识符命名规范、整型实型字符型数据类型、八进制十六进制数合法形式、运…

2026/10/28 15:28:56

requests+BeautifulSoup:爬虫抓取h1标题的入门实战指南

简介:一份以实战为导向的Python爬虫入门资源,面向具备基本编程基础、希望快速掌握网络数据抓取的初学者,可解决从零编写简单爬虫的常见困惑。实例以requests库发送HTTP请求、BeautifulSoup解析HTML文档,完整演示从网页中提取 标题…

2026/10/28 3:32:29

递推最小二乘参数辨识MATLAB编程:二阶系统与渐消记忆实现

简介:这是一篇面向控制系统、信号处理与机器学习等领域学习者的最小二乘参数辨识程序说明文档。资源共包含一个docx格式文档,压缩包大小七十八KB,内容围绕递推最小二乘算法和渐消记忆最小二乘算法展开:先构造一个极点位于单位圆内…

2026/10/29 0:03:42

学生选课系统DFD图绘制指南:边界划分与分层校验实战

简介:文档以顶层与第一层DFD图为核心,完整刻画学生选课系统的逻辑模型,面向软件工程课程设计、系统分析学习及毕设前期建模人群。顶层图界定系统边界,外部实体包括管理员、教师和学生三类角色;第一层图进一步细化用户登…

2026/10/29 0:03:42

JIRA敏捷落地:Scrum角色权限、Sprint与燃尽图避坑指南

简介:围绕“基于JIRA的敏捷开发项目管理”这一主题,面向产品负责人、Scrum Master及研发测试成员,梳理Scrum角色分工、迭代流程与JIRA工具配置的对应关系,适合初、中级团队导入敏捷管理时参考。压缩包共1个docx文件,大…

2026/10/29 0:03:42

SEMI S8人机工程验收实战:从条款拆解到现场实测的完整指南

简介:面向半导体设备设计、制造与运维工程师及安全合规人员,这份资料聚焦SEMI标准体系下的设备安全规范,重点收录SEMI S8-0308《半导体制造设备人体工程学工程安全指南》。内容围绕设备设计原则、错误与事故预防、人体工程学适配三大主线展开…

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

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

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