Share via


MPSGraph_MPSGraphOneHotOps.OneHot Method

Definition

Overloads

OneHot(MPSGraph, MPSGraphTensor, UIntPtr, String)

[Foundation.Export("oneHotWithIndicesTensor:depth:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor OneHot(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor indicesTensor, UIntPtr depth, string? name);
[<Foundation.Export("oneHotWithIndicesTensor:depth:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member OneHot : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * unativeint * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
indicesTensor
MPSGraphTensor
depth
UIntPtr

unativeint

name
String

Returns

Attributes

Applies to

OneHot(MPSGraph, MPSGraphTensor, UIntPtr, MPSDataType, String)

[Foundation.Export("oneHotWithIndicesTensor:depth:dataType:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor OneHot(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor indicesTensor, UIntPtr depth, MetalPerformanceShaders.MPSDataType dataType, string? name);
[<Foundation.Export("oneHotWithIndicesTensor:depth:dataType:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member OneHot : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * unativeint * MetalPerformanceShaders.MPSDataType * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
indicesTensor
MPSGraphTensor
depth
UIntPtr

unativeint

dataType
MPSDataType
name
String

Returns

Attributes

Applies to

OneHot(MPSGraph, MPSGraphTensor, UIntPtr, UIntPtr, String)

[Foundation.Export("oneHotWithIndicesTensor:depth:axis:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor OneHot(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor indicesTensor, UIntPtr depth, UIntPtr axis, string? name);
[<Foundation.Export("oneHotWithIndicesTensor:depth:axis:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member OneHot : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * unativeint * unativeint * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
indicesTensor
MPSGraphTensor
depth
UIntPtr

unativeint

axis
UIntPtr

unativeint

name
String

Returns

Attributes

Applies to

OneHot(MPSGraph, MPSGraphTensor, UIntPtr, UIntPtr, MPSDataType, String)

[Foundation.Export("oneHotWithIndicesTensor:depth:axis:dataType:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor OneHot(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor indicesTensor, UIntPtr depth, UIntPtr axis, MetalPerformanceShaders.MPSDataType dataType, string? name);
[<Foundation.Export("oneHotWithIndicesTensor:depth:axis:dataType:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member OneHot : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * unativeint * unativeint * MetalPerformanceShaders.MPSDataType * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
indicesTensor
MPSGraphTensor
depth
UIntPtr

unativeint

axis
UIntPtr

unativeint

dataType
MPSDataType
name
String

Returns

Attributes

Applies to

OneHot(MPSGraph, MPSGraphTensor, UIntPtr, MPSDataType, Double, Double, String)

[Foundation.Export("oneHotWithIndicesTensor:depth:dataType:onValue:offValue:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor OneHot(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor indicesTensor, UIntPtr depth, MetalPerformanceShaders.MPSDataType dataType, double onValue, double offValue, string? name);
[<Foundation.Export("oneHotWithIndicesTensor:depth:dataType:onValue:offValue:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member OneHot : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * unativeint * MetalPerformanceShaders.MPSDataType * double * double * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
indicesTensor
MPSGraphTensor
depth
UIntPtr

unativeint

dataType
MPSDataType
onValue
Double
offValue
Double
name
String

Returns

Attributes

Applies to

OneHot(MPSGraph, MPSGraphTensor, UIntPtr, UIntPtr, MPSDataType, Double, Double, String)

[Foundation.Export("oneHotWithIndicesTensor:depth:axis:dataType:onValue:offValue:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor OneHot(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor indicesTensor, UIntPtr depth, UIntPtr axis, MetalPerformanceShaders.MPSDataType dataType, double onValue, double offValue, string? name);
[<Foundation.Export("oneHotWithIndicesTensor:depth:axis:dataType:onValue:offValue:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member OneHot : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * unativeint * unativeint * MetalPerformanceShaders.MPSDataType * double * double * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
indicesTensor
MPSGraphTensor
depth
UIntPtr

unativeint

axis
UIntPtr

unativeint

dataType
MPSDataType
onValue
Double
offValue
Double
name
String

Returns

Attributes

Applies to