Show / Hide Table of Contents

Class TensorTypeInfo

Helps typecasting. Holds Tensor element type traits.

Inheritance
object
TensorTypeInfo
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.ML.OnnxRuntime.Tensors
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class TensorTypeInfo

Constructors

| Improve this Doc View Source

TensorTypeInfo(TensorElementType, int)

Ctor

Declaration
public TensorTypeInfo(TensorElementType elementType, int typeSize)
Parameters
Type Name Description
TensorElementType elementType

TensorElementType value

int typeSize

size of the type in bytes

Properties

| Improve this Doc View Source

ElementType

TensorElementType enum

Declaration
public TensorElementType ElementType { get; }
Property Value
Type Description
TensorElementType

type enum value

| Improve this Doc View Source

IsString

Is the type is a string

Declaration
public bool IsString { get; }
Property Value
Type Description
bool

true if Tensor element type is a string

| Improve this Doc View Source

TypeSize

Size of the stored primitive type in bytes

Declaration
public int TypeSize { get; }
Property Value
Type Description
int

size in bytes

  • Improve this Doc
  • View Source
In This Article
Back to top