IReadOnlyTensor Interface
В этой статье
Definition
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
Flattened |
Gets the total number of items in the tensor. |
Is |
Gets a value indicating whether this tensor is empty. |
Is |
Gets a value that indicates whether the underlying buffer is pinned. |
Item[Read |
Gets the specified element of the tensor. |
Item[Read |
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
Get |
Pins and gets a MemoryHandle to the backing memory. |
Applies to
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |