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

Public Types

enum  Type {
  undefined = ONNX_NAMESPACE::TensorProto_DataType_UNDEFINED, float32 = ONNX_NAMESPACE::TensorProto_DataType_FLOAT, uint8 = ONNX_NAMESPACE::TensorProto_DataType_UINT8, int8 = ONNX_NAMESPACE::TensorProto_DataType_INT8,
  uint16 = ONNX_NAMESPACE::TensorProto_DataType_UINT16, int16 = ONNX_NAMESPACE::TensorProto_DataType_INT16, int32 = ONNX_NAMESPACE::TensorProto_DataType_INT32, int64 = ONNX_NAMESPACE::TensorProto_DataType_INT64,
  string = ONNX_NAMESPACE::TensorProto_DataType_STRING, boolean = ONNX_NAMESPACE::TensorProto_DataType_BOOL, float16 = ONNX_NAMESPACE::TensorProto_DataType_FLOAT16, float64 = ONNX_NAMESPACE::TensorProto_DataType_DOUBLE,
  uint32 = ONNX_NAMESPACE::TensorProto_DataType_UINT32, uint64 = ONNX_NAMESPACE::TensorProto_DataType_UINT64, complex64 = ONNX_NAMESPACE::TensorProto_DataType_COMPLEX64, complex128 = ONNX_NAMESPACE::TensorProto_DataType_COMPLEX128
}
 

Public Member Functions

 Tensor (const ONNX_NAMESPACE::TensorProto &tensor)
 
 Tensor (const Tensor &)=default
 
 Tensor (Tensor &&)=default
 
Tensoroperator= (const Tensor &)=delete
 
Tensoroperator= (Tensor &&)=delete
 
const Shape & get_shape () const
 
template<typename T >
std::vector< T > get_data () const
 
const std::string & get_name () const
 
Type get_type () const
 
const element::Typeget_ng_type () const
 
 operator TensorProto_DataType () const
 
std::shared_ptr< ngraph::op::Constantget_ng_constant () const
 

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