昇腾社区首页
中文
注册
开发者
下载

简介

用户构造Graph的节点数据。

需要包含的头文件

1
#include <graph/gnode.h>

Public成员函数

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::vector<int64_t> &attr_value) const
graphStatus GetAttr(const AscendString &name, std::vector<int32_t> &attr_value) const
graphStatus GetAttr(const AscendString &name, std::vector<uint32_t> &attr_value) const
graphStatus GetAttr(const AscendString &name, std::vector<float32_t> &attr_value) const
graphStatus GetAttr(const AscendString &name, std::vector<AscendString> &attr_values) const
graphStatus GetAttr(const AscendString &name, std::vector<bool> &attr_value) const
graphStatus GetAttr(const AscendString &name, std::vector<Tensor> &attr_value) const
graphStatus GetAttr(const AscendString &name, OpBytes &attr_value) const
graphStatus GetAttr(const AscendString &name, std::vector<std::vector<int64_t>> &attr_value) const
graphStatus GetAttr(const AscendString &name, std::vector<ge::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::vector<GraphPtr> &graph_list) const
graphStatus GetDynamicInputIndexesByName(const AscendString &name, std::vector<int32_t> &indexes)
graphStatus GetDynamicOutputIndexesByName(const AscendString &name, std::vector<int32_t> &indexes)
std::vector<GNodePtr> GetInControlNodes() const
std::pair<GNodePtr, 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::vector<GNodePtr> GetOutControlNodes() const
std::vector<std::pair<GNodePtr, 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::vector<int64_t> &attr_value) const
graphStatus SetAttr(const AscendString &name, std::vector<int32_t> &attr_value) const
graphStatus SetAttr(const AscendString &name, std::vector<uint32_t> &attr_value) const
graphStatus SetAttr(const AscendString &name, std::vector<float32_t> &attr_value) const
graphStatus SetAttr(const AscendString &name, std::vector<AscendString> &attr_values) const
graphStatus SetAttr(const AscendString &name, std::vector<bool> &attr_value) const
graphStatus SetAttr(const AscendString &name, std::vector<Tensor> &attr_value) const
graphStatus SetAttr(const AscendString &name, OpBytes &attr_value) const
graphStatus SetAttr(const AscendString &name, std::vector<std::vector<int64_t>> &attr_value) const
graphStatus SetAttr(const AscendString &name, std::vector<ge::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)