MPSGraphSdpaDescriptor.Create(Single) 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.
Creates a scaled dot product attention descriptor with the specified scale.
[Foundation.Export("descriptorWithScale:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphSdpaDescriptor Create(float scale);
[<Foundation.Export("descriptorWithScale:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : single -> MetalPerformanceShadersGraph.MPSGraphSdpaDescriptor
Parameters
- scale
- Single
Returns
- Attributes