尧图网络科技YAOTU DIGITAL 获取报价
获取报价
首页 / 资讯中心 / 文章详情

CANN/ge SetAttrValue API文档

发布时间:2026/9/10 21:37:18

资讯中心
01
ARTICLE

CANN/ge SetAttrValue API文档

CANN/ge SetAttrValue API文档
SetAttrValue【免费下载链接】geGEGraph Engine是面向昇腾的图编译器和执行器提供了计算图优化、多流并行、内存复用和模型下沉等技术手段加速模型执行效率减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge产品支持情况全量芯片支持。头文件/库文件头文件#include graph/attr_value.h库文件libgraph_base.so功能说明设置属性的取值。泛型类承载具体的属性类型。函数原型graphStatus SetAttrValue(const int64_t attr_value) const graphStatus SetAttrValue(const float32_t attr_value) const graphStatus SetAttrValue(const AscendString attr_value) const graphStatus SetAttrValue(const bool attr_value) const graphStatus SetAttrValue(const Tensor attr_value) const graphStatus SetAttrValue(const std::vectorint64_t attr_value) const graphStatus SetAttrValue(const std::vectorfloat32_t attr_value) const graphStatus SetAttrValue(const std::vectorAscendString attr_values) const graphStatus SetAttrValue(const std::vectorbool attr_value) const graphStatus SetAttrValue(const std::vectorTensor attr_value) const graphStatus SetAttrValue(const std::vectorstd::vectorint64_t attr_value) const graphStatus SetAttrValue(const std::vectorge::DataType attr_value) const graphStatus SetAttrValue(const ge::DataType attr_value) const参数说明参数名输入/输出描述attr_value输入具体的属性取值。返回值说明graphStatus类型成功返回GRAPH_SUCCESS 否则返回GRAPH_FAILED。异常处理无约束说明无【免费下载链接】geGEGraph Engine是面向昇腾的图编译器和执行器提供了计算图优化、多流并行、内存复用和模型下沉等技术手段加速模型执行效率减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
02
RELATED NEWS

相关资讯

更多网站建设与数字化升级内容

03
WHY YAOTU

想打造同款高转化官网?

懂行业、懂生意,从建站到增长一站式陪跑

场景化定制

不做模板站,围绕你的业务场景量身设计,小众不撞款。

营销型架构

以转化目标组织内容与路径,让官网真正带来询盘。

全周期服务

设计、开发、运营、运维一体,上线只是开始。

免费获取你的建站方案

留下需求,专属顾问 24 小时内为你输出方案建议。