开发者
下载
[object Object][object Object]

全量芯片支持。

[object Object]
  • 头文件:#include <ge/es_graph_builder.h>
  • 库文件:libeager_style_graph_builder_base.so、libeager_style_graph_builder_base_static.a
[object Object]

创建Const算子。

[object Object]
  • 创建int64类型的Const算子

    [object Object]
  • 创建int32类型的Const算子

    [object Object]
  • 创建uint64类型的Const算子

    [object Object]
  • 创建uint32类型的Const算子

    [object Object]
  • 创建float类型的Const算子

    [object Object]
  • 创建指定类型、格式和维度的Const算子(通用模板方法,该原型后续会废弃,建议使用

    [object Object]

    CreateConst通用模板方法内部使用IrDefOutputs/IrDefAttrs接口,IR定义结构体中包含std::string字段,不保证跨不同C++ ABI配置的兼容性。该接口保留用于兼容老软件包。

    需要ABI安全时,请使用,CreateConstV2要求运行时软件包支持CompliantNodeBuilder V2接口。

[object Object][object Object]undefined
[object Object][object Object]undefined
[object Object]

[object Object]
  • 创建int64类型的Const算子:

    [object Object]
  • 创建指定类型、格式和维度的Const算子(通用模版方法):

    [object Object]