Class OrtTypeInfo
This class retrieves Type Information for input/outputs of the model.
Inheritance
System.Object
OrtTypeInfo
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class OrtTypeInfo : object
Properties
| Improve this Doc View SourceMapTypeInfo
Represents MapTypeInfo from the OrtTypeInfo iff this OrtTypeInfo represents a map.
Declaration
public OrtMapTypeInfo MapTypeInfo { get; }
Property Value
Type | Description |
---|---|
OrtMapTypeInfo | Instance of MapTypeInfo |
Exceptions
Type | Condition |
---|---|
OnnxRuntimeException |
OnnxType
Represents OnnxValueType of the OrtTypeInfo
Declaration
public OnnxValueType OnnxType { get; }
Property Value
Type | Description |
---|---|
OnnxValueType | OnnxValueType |
OptionalTypeInfo
Fetches OptionalTypeInfo from the OrtTypeInfo iff this OrtTypeInfo represents a optional type.
Declaration
public OrtSequenceOrOptionalTypeInfo OptionalTypeInfo { get; }
Property Value
Type | Description |
---|---|
OrtSequenceOrOptionalTypeInfo | Instance of OptionalTypeInfo |
Exceptions
Type | Condition |
---|---|
OnnxRuntimeException |
SequenceTypeInfo
Sequence type information from the OrtTypeInfo iff this OrtTypeInfo represents a sequence.
Declaration
public OrtSequenceOrOptionalTypeInfo SequenceTypeInfo { get; }
Property Value
Type | Description |
---|---|
OrtSequenceOrOptionalTypeInfo | Instance of OrtSequenceTypeInfo |
Exceptions
Type | Condition |
---|---|
OnnxRuntimeException |
TensorTypeAndShapeInfo
This property returns the tensor type and shape information from the OrtTypeInfo iff this OrtTypeInfo represents a tensor.
Declaration
public OrtTensorTypeAndShapeInfo TensorTypeAndShapeInfo { get; }
Property Value
Type | Description |
---|---|
OrtTensorTypeAndShapeInfo | Instance of OrtTensorTypeAndShapeInfo |
Exceptions
Type | Condition |
---|---|
OnnxRuntimeException |