MPSNNOptimizerDescriptor.Create Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
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
Возвращаемое значение
- Атрибуты