Tensor.CreateFromShapeUninitialized Metodo

Definizione

Overload

Nome Descrizione
CreateFromShapeUninitialized<T>(ReadOnlySpan<IntPtr>, Boolean)

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

CreateFromShapeUninitialized<T>(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<T>(ReadOnlySpan<IntPtr>, Boolean)

Origine:
Tensor.cs
Origine:
Tensor.cs

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

public static System.Numerics.Tensors.Tensor<T> CreateFromShapeUninitialized<T>(scoped ReadOnlySpan<IntPtr> lengths, bool pinned = false);
static member CreateFromShapeUninitialized : ReadOnlySpan<nativeint> * bool -> System.Numerics.Tensors.Tensor<'T>
Public Function CreateFromShapeUninitialized(Of T) (lengths As ReadOnlySpan(Of IntPtr), Optional pinned As Boolean = false) As Tensor(Of T)

Parametri di tipo

T

Parametri

lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

Lunghezze di ogni dimensione.

pinned
Boolean

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

Valori restituiti

Si applica a

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

Origine:
Tensor.cs
Origine:
Tensor.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 System.Numerics.Tensors.Tensor<T> CreateFromShapeUninitialized<T>(scoped ReadOnlySpan<IntPtr> lengths, scoped ReadOnlySpan<IntPtr> strides, bool pinned = false);
static member CreateFromShapeUninitialized : ReadOnlySpan<nativeint> * ReadOnlySpan<nativeint> * bool -> System.Numerics.Tensors.Tensor<'T>
Public Function CreateFromShapeUninitialized(Of T) (lengths As ReadOnlySpan(Of IntPtr), strides As ReadOnlySpan(Of IntPtr), Optional pinned As Boolean = false) As Tensor(Of T)

Parametri di tipo

T

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

Si applica a