OrtExternalTensorDescriptor class final

\brief Descriptor for creating a tensor from imported external memory.

\note The version field must be set to ORT_API_VERSION. This ensures forward compatibility as fields may be added in future versions.

\since Version 1.24.

Inheritance
Implemented types
Available extensions

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
element_type ONNXTensorElementDataType
no setter
element_typeAsInt int
< Data type of tensor elements
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
offset_bytes int
< Additional offset within imported memory (default 0). Applied relative to OrtExternalMemoryDescriptor::offset_bytes. Enables multiple tensors from the same imported memory handle.
getter/setter pair
rank int
< Number of dimensions
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape Pointer<Int64>
< Array of dimension sizes
getter/setter pair
version int
< Must be ORT_API_VERSION
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited