Compartir a través de


Tensor.CreateAndFillUniformDistribution Método

Definición

Sobrecargas

CreateAndFillUniformDistribution<T>(Random, ReadOnlySpan<IntPtr>)

Crea un Tensor<T> e inicializa con datos aleatorios distribuidos uniformemente.

CreateAndFillUniformDistribution<T>(ReadOnlySpan<IntPtr>)

Crea un Tensor<T> e inicializa con datos aleatorios distribuidos uniformemente.

CreateAndFillUniformDistribution<T>(Random, ReadOnlySpan<IntPtr>)

Source:
Tensor.Factory.cs
Source:
Tensor.Factory.cs

Crea un Tensor<T> e inicializa con datos aleatorios distribuidos uniformemente.

public:
generic <typename T>
 where T : System::Numerics::IFloatingPoint<T> static System::Numerics::Tensors::Tensor<T> ^ CreateAndFillUniformDistribution(Random ^ random, ReadOnlySpan<IntPtr> lengths);
public static System.Numerics.Tensors.Tensor<T> CreateAndFillUniformDistribution<T> (Random random, scoped ReadOnlySpan<IntPtr> lengths) where T : System.Numerics.IFloatingPoint<T>;
static member CreateAndFillUniformDistribution : Random * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Function CreateAndFillUniformDistribution(Of T As IFloatingPoint(Of T)) (random As Random, lengths As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)

Parámetros de tipo

T

Parámetros

random
Random
lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

Un ReadOnlySpan<T> que indica las longitudes de cada dimensión.

Devoluciones

Se aplica a

CreateAndFillUniformDistribution<T>(ReadOnlySpan<IntPtr>)

Source:
Tensor.Factory.cs
Source:
Tensor.Factory.cs

Crea un Tensor<T> e inicializa con datos aleatorios distribuidos uniformemente.

public:
generic <typename T>
 where T : System::Numerics::IFloatingPoint<T> static System::Numerics::Tensors::Tensor<T> ^ CreateAndFillUniformDistribution(ReadOnlySpan<IntPtr> lengths);
public static System.Numerics.Tensors.Tensor<T> CreateAndFillUniformDistribution<T> (scoped ReadOnlySpan<IntPtr> lengths) where T : System.Numerics.IFloatingPoint<T>;
static member CreateAndFillUniformDistribution : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Function CreateAndFillUniformDistribution(Of T As IFloatingPoint(Of T)) (lengths As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)

Parámetros de tipo

T

Parámetros

lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

Un ReadOnlySpan<T> que indica las longitudes de cada dimensión.

Devoluciones

Se aplica a