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