IReadOnlyTensor Interface

Definition

Represents a read-only tensor.

public interface class IReadOnlyTensor
public interface IReadOnlyTensor
type IReadOnlyTensor = interface
Public Interface IReadOnlyTensor
Derived

Properties

FlattenedLength

Gets the total number of items in the tensor.

HasAnyDenseDimensions

Gets a value that indicates whether the current tensor has any dimension span where IsDense is true.

IsDense

Gets a value that indicates whether the current tensor is dense.

IsEmpty

Gets a value indicating whether this tensor is empty.

IsPinned

Gets a value that indicates whether the underlying buffer is pinned.

Item[ReadOnlySpan<IntPtr>]

Gets the specified element of the tensor.

Item[ReadOnlySpan<NIndex>]

Gets the value at the specified indexes.

Lengths

Gets the length of each dimension in the tensor.

Rank

Gets the rank, or number of dimensions, in the tensor.

Strides

Gets the stride of each dimension in the tensor.

Applies to