Share via


MLCMultiheadAttentionLayer.Create Method

Definition

[Foundation.Export("layerWithDescriptor:weights:biases:attentionBiases:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCMultiheadAttentionLayer? Create(MLCompute.MLCMultiheadAttentionDescriptor descriptor, MLCompute.MLCTensor[] weights, MLCompute.MLCTensor[]? biases, MLCompute.MLCTensor[]? attentionBiases);
[<Foundation.Export("layerWithDescriptor:weights:biases:attentionBiases:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MLCompute.MLCMultiheadAttentionDescriptor * MLCompute.MLCTensor[] * MLCompute.MLCTensor[] * MLCompute.MLCTensor[] -> MLCompute.MLCMultiheadAttentionLayer

Parameters

weights
MLCTensor[]
biases
MLCTensor[]
attentionBiases
MLCTensor[]

Returns

Attributes

Applies to