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