MLCLossLayer.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Create(MLCLossDescriptor) | |
| Create(MLCLossDescriptor, MLCTensor) |
Create(MLCLossDescriptor)
[Foundation.Export("layerWithDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossLayer Create(MLCompute.MLCLossDescriptor lossDescriptor);
[<Foundation.Export("layerWithDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MLCompute.MLCLossDescriptor -> MLCompute.MLCLossLayer
Parameters
- lossDescriptor
- MLCLossDescriptor
Returns
- Attributes
Applies to
Create(MLCLossDescriptor, MLCTensor)
[Foundation.Export("layerWithDescriptor:weights:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCLossLayer Create(MLCompute.MLCLossDescriptor lossDescriptor, MLCompute.MLCTensor weights);
[<Foundation.Export("layerWithDescriptor:weights:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MLCompute.MLCLossDescriptor * MLCompute.MLCTensor -> MLCompute.MLCLossLayer
Parameters
- lossDescriptor
- MLCLossDescriptor
- weights
- MLCTensor
Returns
- Attributes