TensorUInt64Bit Classe

Definizione

Oggetto tensore intero senza segno a 64 bit.

public ref class TensorUInt64Bit sealed : ITensor
public ref class TensorUInt64Bit sealed : ITensor, IClosable, IMemoryBuffer
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TensorUInt64Bit final : ITensor
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TensorUInt64Bit final : ITensor, IClosable, IMemoryBuffer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TensorUInt64Bit : ITensor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TensorUInt64Bit : System.IDisposable, ITensor, IMemoryBuffer
Public NotInheritable Class TensorUInt64Bit
Implements ITensor
Public NotInheritable Class TensorUInt64Bit
Implements IDisposable, IMemoryBuffer, ITensor
Ereditarietà
Object Platform::Object IInspectable TensorUInt64Bit
Attributi
Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10, version 1809 (è stato introdotto in 10.0.17763.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (è stato introdotto in v1.0)

Commenti

Un tensore è una matrice multidimensionale di valori. Un tensore intero senza segno a 64 bit è un tensore di valori integer senza segno a 64 bit.

Il layout dei tensori è di tipo row-major, con dati contigui ben compressi che rappresentano ogni dimensione. La dimensione totale di un tensore è il prodotto delle dimensioni di ogni dimensione.

Windows Server

Per usare questa API in Windows Server, è necessario usare Windows Server 2019 con Esperienza desktop.

Thread safety

Questa API è thread-safe.

Cronologia delle versioni

Versione di Windows Versione dell'SDK Valore aggiunto
1903 18362 CreateFromBuffer
1903 18362 CreateFromShapeArrayAndDataArray

Proprietà

Kind

Tipo di funzionalità.

Shape

Restituisce il conteggio e le dimensioni di ogni dimensione.

TensorKind

Restituisce il tipo di dati del tensore.

Metodi

Close()

Se non sono presenti oggetti IMemoryBufferReference in sospeso creati da questo oggetto, Close eliminerà l'oggetto ed eliminerà le risorse associate. In caso contrario, Close si disconnetterà dalle risorse associate e verrà eliminato definitivamente quando l'ultimo IMemoryBufferReference viene chiuso.

Create()

Crea un oggetto tensore intero senza segno a 64 bit senza allocare un buffer.

Create(IIterable<Int64>)

Crea un oggetto tensore intero senza segno a 64 bit e alloca un buffer di forma di dimensioni.

CreateFromArray(IIterable<Int64>, UInt64[])

Crea un oggetto tensore intero senza segno a 64 bit, alloca un buffer di forma delle dimensioni e copia tutti i dati in esso contenuti.

CreateFromBuffer(Int64[], IBuffer)

Crea un oggetto tensore intero senza segno a 64 bit con la forma specificata e usa il buffer sottostante nel buffer per la valutazione successiva.

CreateFromIterable(IIterable<Int64>, IIterable<UInt64>)

Crea un oggetto tensore intero senza segno a 64 bit, alloca un buffer di forma delle dimensioni e copia tutti i dati in esso contenuti.

CreateFromShapeArrayAndDataArray(Int64[], UInt64[])

Crea un oggetto tensore intero senza segno a 64 bit, alloca un buffer di forma delle dimensioni e copia tutti i dati in esso contenuti.

CreateReference()

Restituisce una rappresentazione IMemoryBufferReference del buffer che supporta l'oggetto tensore intero senza segno a 64 bit.

Dispose()

Esegue attività definite dall'applicazione, come rilasciare o reimpostare risorse non gestite.

GetAsVectorView()

Restituisce una visualizzazione di sola lettura dei dati.

Si applica a

Vedi anche