Contents
More
Type of the element type returned by tensorsfollowing theArray API.
code – element type based on onnx definition,if str, it looks into classonnx.TensorPrototo retrieve the code
onnx.TensorProto
Returns its full name.
Allowed element type based on numpy dtypes.
dtype – DType or a string
Returns the set name.
Returns its fullname.
Defines an optional parameter type.
dtype – parameter type
Defines an optional tensor type.
dtype – element type
Defines a parameter type.
optional – is optional or not
Returns the onnx corresponding type.
Defines a scalar.
Defines a sequence of tensors.
Defines a shape type.
Used to annotate functions.
dtypes – tuple ofElemType
ElemType
shape – tuple of integer or strings or None
name – name of the type
Tells ifcls is a superset oftensor_type.
Determines if the element typedtypeis withindtypes.
Returns the number of types.
alias ofFloat32
Float32
alias ofint8
int8
alias ofint16
int16
alias ofint32
int32
alias ofint64
int64
alias ofuint8
uint8
alias ofuint16
uint16
alias ofuint32
uint32
alias ofuint64
uint64
DType
DType.type_name()
ElemType.get_set_name()
ElemType.type_name()
OptParType
OptParType.type_name()
OptTensorType
ParType
ParType.onnx_type()
ParType.type_name()
Scalar
SequenceType
SequenceType.type_name()
ShapeType
TensorType
TensorType.issuperset()
TensorType.supports_dtype()
TensorType.type_name()
TupleType
TupleType.len()
TupleType.type_name()
Bool
BFloat16
Float16
Float64
Int8
Int16
Int32
Int64
UInt8
UInt16
UInt32
UInt64