MPSNNOptimizerDescriptor.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(Single, Single, MPSNNRegularizationType, Single) | |
Create(Single, Single, Boolean, Single, Single, MPSNNRegularizationType, Single) |
Create(Single, Single, MPSNNRegularizationType, Single)
[Foundation.Export("optimizerDescriptorWithLearningRate:gradientRescale:regularizationType:regularizationScale:")]
public static MetalPerformanceShaders.MPSNNOptimizerDescriptor Create (float learningRate, float gradientRescale, MetalPerformanceShaders.MPSNNRegularizationType regularizationType, float regularizationScale);
static member Create : single * single * MetalPerformanceShaders.MPSNNRegularizationType * single -> MetalPerformanceShaders.MPSNNOptimizerDescriptor
參數
- learningRate
- Single
- gradientRescale
- Single
- regularizationType
- MPSNNRegularizationType
- regularizationScale
- Single
傳回
- 屬性
適用於
Create(Single, Single, Boolean, Single, Single, MPSNNRegularizationType, Single)
[Foundation.Export("optimizerDescriptorWithLearningRate:gradientRescale:applyGradientClipping:gradientClipMax:gradientClipMin:regularizationType:regularizationScale:")]
public static MetalPerformanceShaders.MPSNNOptimizerDescriptor Create (float learningRate, float gradientRescale, bool applyGradientClipping, float gradientClipMax, float gradientClipMin, MetalPerformanceShaders.MPSNNRegularizationType regularizationType, float regularizationScale);
static member Create : single * single * bool * single * single * MetalPerformanceShaders.MPSNNRegularizationType * single -> MetalPerformanceShaders.MPSNNOptimizerDescriptor
參數
- learningRate
- Single
- gradientRescale
- Single
- applyGradientClipping
- Boolean
- gradientClipMax
- Single
- gradientClipMin
- Single
- regularizationType
- MPSNNRegularizationType
- regularizationScale
- Single
傳回
- 屬性