Class DisposableNamedOnnxValue
This is a legacy class that is kept for backward compatibility. Use OrtValue based API.
This class serves as a container for model run output values including tensors, sequences of tensors, sequences and maps. The class must be disposed of. It disposes of _ortValueHolder that owns the underlying Ort output value and anything else that would need to be disposed by the instance of the class. Use factory method CreateFromOrtValue to obtain an instance of the class.
Implements
IDisposable
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
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class DisposableNamedOnnxValue : NamedOnnxValue, IDisposable
Properties
| Improve this Doc View SourceElementType
Only valid if ValueType is Tensor
Declaration
public TensorElementType ElementType { get; }
Property Value
Type | Description |
---|---|
TensorElementType |
Methods
| Improve this Doc View SourceDispose()
IDisposable implementation
Declaration
public void Dispose()
Dispose(Boolean)
IDisposable implementation
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true if invoked by Dispose() |
Implements
System.IDisposable