MPSGraph_MPSGraphTopKOps.TopK 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
TopK(MPSGraph, MPSGraphTensor, MPSGraphTensor, String)
[Foundation.Export("topKWithSourceTensor:kTensor:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor[] TopK(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor source, MetalPerformanceShadersGraph.MPSGraphTensor kTensor, string? name);
[<Foundation.Export("topKWithSourceTensor:kTensor:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member TopK : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * string -> MetalPerformanceShadersGraph.MPSGraphTensor[]
Parameters
- This
- MPSGraph
- source
- MPSGraphTensor
- kTensor
- MPSGraphTensor
- name
- String
Returns
- Attributes
Applies to
TopK(MPSGraph, MPSGraphTensor, UIntPtr, String)
[Foundation.Export("topKWithSourceTensor:k:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor[] TopK(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor source, UIntPtr k, string? name);
[<Foundation.Export("topKWithSourceTensor:k:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member TopK : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * unativeint * string -> MetalPerformanceShadersGraph.MPSGraphTensor[]
Parameters
- This
- MPSGraph
- source
- MPSGraphTensor
- k
-
UIntPtr
unativeint
- name
- String
Returns
- Attributes
Applies to
TopK(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphTensor, String)
[Foundation.Export("topKWithSourceTensor:axisTensor:kTensor:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor[] TopK(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor source, MetalPerformanceShadersGraph.MPSGraphTensor axisTensor, MetalPerformanceShadersGraph.MPSGraphTensor kTensor, string? name);
[<Foundation.Export("topKWithSourceTensor:axisTensor:kTensor:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member TopK : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * string -> MetalPerformanceShadersGraph.MPSGraphTensor[]
Parameters
- This
- MPSGraph
- source
- MPSGraphTensor
- axisTensor
- MPSGraphTensor
- kTensor
- MPSGraphTensor
- name
- String
Returns
- Attributes
Applies to
TopK(MPSGraph, MPSGraphTensor, IntPtr, UIntPtr, String)
[Foundation.Export("topKWithSourceTensor:axis:k:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor[] TopK(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor source, IntPtr axis, UIntPtr k, string? name);
[<Foundation.Export("topKWithSourceTensor:axis:k:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member TopK : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * nativeint * unativeint * string -> MetalPerformanceShadersGraph.MPSGraphTensor[]
Parameters
- This
- MPSGraph
- source
- MPSGraphTensor
- axis
-
IntPtr
nativeint
- k
-
UIntPtr
unativeint
- name
- String
Returns
- Attributes