MPSNNOptimizerDescriptor 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MPSNNOptimizerDescriptor(NSObjectFlag)
protected MPSNNOptimizerDescriptor (Foundation.NSObjectFlag t);
new MetalPerformanceShaders.MPSNNOptimizerDescriptor : Foundation.NSObjectFlag -> MetalPerformanceShaders.MPSNNOptimizerDescriptor
參數
適用於
MPSNNOptimizerDescriptor(IntPtr)
protected internal MPSNNOptimizerDescriptor (IntPtr handle);
new MetalPerformanceShaders.MPSNNOptimizerDescriptor : nativeint -> MetalPerformanceShaders.MPSNNOptimizerDescriptor
參數
- handle
-
IntPtr
nativeint
適用於
MPSNNOptimizerDescriptor(Single, Single, MPSNNRegularizationType, Single)
[Foundation.Export("initWithLearningRate:gradientRescale:regularizationType:regularizationScale:")]
public MPSNNOptimizerDescriptor (float learningRate, float gradientRescale, MetalPerformanceShaders.MPSNNRegularizationType regularizationType, float regularizationScale);
new MetalPerformanceShaders.MPSNNOptimizerDescriptor : single * single * MetalPerformanceShaders.MPSNNRegularizationType * single -> MetalPerformanceShaders.MPSNNOptimizerDescriptor
參數
- learningRate
- Single
- gradientRescale
- Single
- regularizationType
- MPSNNRegularizationType
- regularizationScale
- Single
- 屬性
適用於
MPSNNOptimizerDescriptor(Single, Single, Boolean, Single, Single, MPSNNRegularizationType, Single)
[Foundation.Export("initWithLearningRate:gradientRescale:applyGradientClipping:gradientClipMax:gradientClipMin:regularizationType:regularizationScale:")]
public MPSNNOptimizerDescriptor (float learningRate, float gradientRescale, bool applyGradientClipping, float gradientClipMax, float gradientClipMin, MetalPerformanceShaders.MPSNNRegularizationType regularizationType, float regularizationScale);
new MetalPerformanceShaders.MPSNNOptimizerDescriptor : single * single * bool * single * single * MetalPerformanceShaders.MPSNNRegularizationType * single -> MetalPerformanceShaders.MPSNNOptimizerDescriptor
參數
- learningRate
- Single
- gradientRescale
- Single
- applyGradientClipping
- Boolean
- gradientClipMax
- Single
- gradientClipMin
- Single
- regularizationType
- MPSNNRegularizationType
- regularizationScale
- Single
- 屬性