Class TensorTypeInfo
Helps typecasting. Holds Tensor element type traits.
Inheritance
System.Object
TensorTypeInfo
Namespace: Microsoft.ML.OnnxRuntime.Tensors
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class TensorTypeInfo : object
Constructors
| Improve this Doc View SourceTensorTypeInfo(TensorElementType, Int32)
Ctor
Declaration
public TensorTypeInfo(TensorElementType elementType, int typeSize)
Parameters
Type | Name | Description |
---|---|---|
TensorElementType | elementType | TensorElementType value |
System.Int32 | typeSize | size fo the type in bytes |
Properties
| Improve this Doc View SourceElementType
TensorElementType enum
Declaration
public TensorElementType ElementType { get; }
Property Value
Type | Description |
---|---|
TensorElementType | type enum value |
IsString
Is the type is a string
Declaration
public bool IsString { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if Tensor element type is a string |
TypeSize
Size of the stored primitive type in bytes
Declaration
public int TypeSize { get; }
Property Value
Type | Description |
---|---|
System.Int32 | size in bytes |