Share via


MLCLossLayer.Create Method

Definition

Overloads

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

Applies to