Lingua

ITensor<TSelf,T>.CreateFromShapeUninitialized Metodo

Definizione

Overload

Nome Descrizione
CreateFromShapeUninitialized(ReadOnlySpan<IntPtr>, Boolean)

Crea un nuovo tensore con le lunghezze e gli stride specificati.

CreateFromShapeUninitialized(ReadOnlySpan<IntPtr>, ReadOnlySpan<IntPtr>, Boolean)

Crea un nuovo tensore con le lunghezze e gli stride specificati. Se pinned è true, il buffer sottostante viene creato in modo permanente, altrimenti il buffer sottostante non viene aggiunto. Il buffer sottostante non viene inizializzato.

CreateFromShapeUninitialized(ReadOnlySpan<IntPtr>, Boolean)

Origine:
ITensor_1.cs
Origine:
ITensor_1.cs

Crea un nuovo tensore con le lunghezze e gli stride specificati.

public static abstract TSelf CreateFromShapeUninitialized(scoped ReadOnlySpan<IntPtr> lengths, bool pinned = false);
static member CreateFromShapeUninitialized : ReadOnlySpan<nativeint> * bool -> 'Self
Public Shared Function CreateFromShapeUninitialized (lengths As ReadOnlySpan(Of IntPtr), Optional pinned As Boolean = false) As TSelf

Parametri

lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

Lunghezze di ogni dimensione.

pinned
Boolean

true per aggiungere il buffer sottostante. Il valore predefinito è false.

Valori restituiti

TSelf

Commenti

Se pinned è true, il buffer sottostante viene creato in modo permanente, altrimenti il buffer sottostante non viene aggiunto.

Il buffer sottostante non viene inizializzato.

Si applica a

CreateFromShapeUninitialized(ReadOnlySpan<IntPtr>, ReadOnlySpan<IntPtr>, Boolean)

Origine:
ITensor_1.cs
Origine:
ITensor_1.cs

Crea un nuovo tensore con le lunghezze e gli stride specificati. Se pinned è true, il buffer sottostante viene creato in modo permanente, altrimenti il buffer sottostante non viene aggiunto. Il buffer sottostante non viene inizializzato.

public static abstract TSelf CreateFromShapeUninitialized(scoped ReadOnlySpan<IntPtr> lengths, scoped ReadOnlySpan<IntPtr> strides, bool pinned = false);
static member CreateFromShapeUninitialized : ReadOnlySpan<nativeint> * ReadOnlySpan<nativeint> * bool -> 'Self
Public Shared Function CreateFromShapeUninitialized (lengths As ReadOnlySpan(Of IntPtr), strides As ReadOnlySpan(Of IntPtr), Optional pinned As Boolean = false) As TSelf

Parametri

lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

Lunghezze di ogni dimensione.

strides

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

I passi di ogni dimensione.

pinned
Boolean

true per aggiungere il buffer sottostante. Il valore predefinito è false.

Valori restituiti

TSelf

Commenti

Se pinned è true, il buffer sottostante viene creato in modo permanente, altrimenti il buffer sottostante non viene aggiunto. Il buffer sottostante non viene inizializzato.

Si applica a