Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

IReadOnlyTensor Interface

Definition

Namespace:
System.Numerics.Tensors
Assembly:
System.Numerics.Tensors.dll
Package:
System.Numerics.Tensors v10.0.0-preview.6.25358.103
Source:
IReadOnlyTensor.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents a read-only tensor.

public interface class IReadOnlyTensor
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5001", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]public interface IReadOnlyTensor
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5001", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]type IReadOnlyTensor = interface
Public Interface IReadOnlyTensor
Derived
Attributes

Properties

FlattenedLength

Gets the total number of items in the tensor.

HasAnyDenseDimensions

Determines if the current tensor has any dimension whereGetDimensionSpan(int) will iterate through tensors that would haveIsDense betrue.

IsDense

Determines if 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.

Methods

GetPinnedHandle()

Pins and gets aMemoryHandle to the backing memory.

Applies to

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo