Public Types | Public Member Functions
ngraph::onnx_import::Attribute Class Reference

Public Types

enum  Type {
  undefined = ONNX_NAMESPACE::AttributeProto_AttributeType_UNDEFINED, float_point = ONNX_NAMESPACE::AttributeProto_AttributeType_FLOAT, integer = ONNX_NAMESPACE::AttributeProto_AttributeType_INT, string = ONNX_NAMESPACE::AttributeProto_AttributeType_STRING,
  tensor = ONNX_NAMESPACE::AttributeProto_AttributeType_TENSOR, graph = ONNX_NAMESPACE::AttributeProto_AttributeType_GRAPH, float_point_array = ONNX_NAMESPACE::AttributeProto_AttributeType_FLOATS, integer_array = ONNX_NAMESPACE::AttributeProto_AttributeType_INTS,
  string_array = ONNX_NAMESPACE::AttributeProto_AttributeType_STRINGS, tensor_array = ONNX_NAMESPACE::AttributeProto_AttributeType_TENSORS, graph_array = ONNX_NAMESPACE::AttributeProto_AttributeType_GRAPHS
}
 

Public Member Functions

 Attribute (const ONNX_NAMESPACE::AttributeProto &attribute_proto)
 
 Attribute (Attribute &&) noexcept=default
 
 Attribute (const Attribute &)=default
 
Attributeoperator= (Attribute &&) noexcept=delete
 
Attributeoperator= (const Attribute &)=delete
 
const std::string & get_name () const
 
Type get_type () const
 
bool is_tensor () const
 
bool is_tensor_array () const
 
bool is_float () const
 
bool is_float_array () const
 
bool is_integer () const
 
bool is_integer_array () const
 
bool is_string () const
 
bool is_string_array () const
 
bool is_graph () const
 
bool is_graph_array () const
 
Tensor get_tensor () const
 
float get_float () const
 
int64_t get_integer () const
 
const std::string & get_string () const
 
Subgraph get_subgraph (const Graph &parent_graph) const
 
std::vector< Tensorget_tensor_array () const
 
std::vector< float > get_float_array () const
 
std::vector< int64_t > get_integer_array () const
 
std::vector< std::string > get_string_array () const
 
std::vector< Graphget_graph_array (Model &) const
 
 operator ONNX_NAMESPACE::AttributeProto_AttributeType () const
 
template<typename T >
get_value () const
 

The documentation for this class was generated from the following file: