Tensor.CreateAndFillGaussianNormalDistribution 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateAndFillGaussianNormalDistribution<T>(ReadOnlySpan<IntPtr>) |
创建 Tensor<T> 并使用高斯正态分布中的随机数据初始化它。 |
CreateAndFillGaussianNormalDistribution<T>(Random, ReadOnlySpan<IntPtr>) |
创建 Tensor<T> 并使用高斯正态分布中的随机数据初始化它。 |
CreateAndFillGaussianNormalDistribution<T>(ReadOnlySpan<IntPtr>)
- Source:
- Tensor.Factory.cs
创建 Tensor<T> 并使用高斯正态分布中的随机数据初始化它。
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)
类型参数
- T
参数
- lengths
-
ReadOnlySpan<nativeint>
指示每个维度的长度的 ReadOnlySpan<T>。
返回
适用于
CreateAndFillGaussianNormalDistribution<T>(Random, ReadOnlySpan<IntPtr>)
- Source:
- Tensor.Factory.cs
创建 Tensor<T> 并使用高斯正态分布中的随机数据初始化它。
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)
类型参数
- T
参数
- random
- Random
- lengths
-
ReadOnlySpan<nativeint>
指示每个维度的长度的 ReadOnlySpan<T>。