Partajați prin


Tensor.CreateAndFillGaussianNormalDistribution Method

Definition

Overloads

CreateAndFillGaussianNormalDistribution<T>(ReadOnlySpan<IntPtr>)

Creates a Tensor<T> and initializes it with random data in a gaussian normal distribution.

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

Creates a Tensor<T> and initializes it with random data in a gaussian normal distribution.

CreateAndFillGaussianNormalDistribution<T>(ReadOnlySpan<IntPtr>)

Source:
Tensor.Factory.cs

Creates a Tensor<T> and initializes it with random data in a gaussian normal distribution.

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

Type Parameters

T

Parameters

lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

A ReadOnlySpan<T> indicating the lengths of each dimension.

Returns

Applies to

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

Source:
Tensor.Factory.cs

Creates a Tensor<T> and initializes it with random data in a gaussian normal distribution.

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

Type Parameters

T

Parameters

random
Random
lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

A ReadOnlySpan<T> indicating the lengths of each dimension.

Returns

Applies to