Show / Hide Table of Contents

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.

Inheritance
Object
NamedOnnxValue
DisposableNamedOnnxValue
Implements
IDisposable
Inherited Members
NamedOnnxValue.ValueType
NamedOnnxValue.CreateFromTensor<T>(String, Tensor<T>)
NamedOnnxValue.CreateFromSequence<T>(String, IEnumerable<T>)
NamedOnnxValue.CreateFromMap<K, V>(String, IDictionary<K, V>)
NamedOnnxValue.Name
NamedOnnxValue.Value
NamedOnnxValue.AsTensor<T>()
NamedOnnxValue.AsEnumerable<T>()
NamedOnnxValue.AsDictionary<K, V>()
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 Source

ElementType

Only valid if ValueType is Tensor

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

Methods

| Improve this Doc View Source

Dispose()

IDisposable implementation

Declaration
public void Dispose()
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top