Share via


MPSGraph_MPSGraphRandomOps.Random Method

Definition

Overloads

Random(MPSGraph, MPSGraphTensor, MPSGraphRandomOpDescriptor, String)

[Foundation.Export("randomTensorWithShapeTensor:descriptor:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Random(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor shapeTensor, MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor descriptor, string? name);
[<Foundation.Export("randomTensorWithShapeTensor:descriptor:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Random : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
shapeTensor
MPSGraphTensor
name
String

Returns

Attributes

Applies to

Random(MPSGraph, Int32[], MPSGraphRandomOpDescriptor, String)

[Foundation.Export("randomTensorWithShape:descriptor:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Random(this MetalPerformanceShadersGraph.MPSGraph This, int[] shape, MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor descriptor, string? name);
[<Foundation.Export("randomTensorWithShape:descriptor:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Random : MetalPerformanceShadersGraph.MPSGraph * int[] * MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
shape
Int32[]
name
String

Returns

Attributes

Applies to

Random(MPSGraph, MPSGraphTensor, MPSGraphRandomOpDescriptor, MPSGraphTensor, String)

[Foundation.Export("randomTensorWithShapeTensor:descriptor:stateTensor:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor[] Random(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor shapeTensor, MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor descriptor, MetalPerformanceShadersGraph.MPSGraphTensor state, string? name);
[<Foundation.Export("randomTensorWithShapeTensor:descriptor:stateTensor:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Random : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor * MetalPerformanceShadersGraph.MPSGraphTensor * string -> MetalPerformanceShadersGraph.MPSGraphTensor[]

Parameters

This
MPSGraph
shapeTensor
MPSGraphTensor
name
String

Returns

Attributes

Applies to

Random(MPSGraph, MPSGraphTensor, MPSGraphRandomOpDescriptor, UIntPtr, String)

[Foundation.Export("randomTensorWithShapeTensor:descriptor:seed:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Random(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor shapeTensor, MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor descriptor, UIntPtr seed, string? name);
[<Foundation.Export("randomTensorWithShapeTensor:descriptor:seed:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Random : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor * unativeint * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
shapeTensor
MPSGraphTensor
seed
UIntPtr

unativeint

name
String

Returns

Attributes

Applies to

Random(MPSGraph, Int32[], MPSGraphRandomOpDescriptor, MPSGraphTensor, String)

[Foundation.Export("randomTensorWithShape:descriptor:stateTensor:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor[] Random(this MetalPerformanceShadersGraph.MPSGraph This, int[] shape, MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor descriptor, MetalPerformanceShadersGraph.MPSGraphTensor state, string? name);
[<Foundation.Export("randomTensorWithShape:descriptor:stateTensor:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Random : MetalPerformanceShadersGraph.MPSGraph * int[] * MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor * MetalPerformanceShadersGraph.MPSGraphTensor * string -> MetalPerformanceShadersGraph.MPSGraphTensor[]

Parameters

This
MPSGraph
shape
Int32[]
name
String

Returns

Attributes

Applies to

Random(MPSGraph, Int32[], MPSGraphRandomOpDescriptor, UIntPtr, String)

[Foundation.Export("randomTensorWithShape:descriptor:seed:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Random(this MetalPerformanceShadersGraph.MPSGraph This, int[] shape, MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor descriptor, UIntPtr seed, string? name);
[<Foundation.Export("randomTensorWithShape:descriptor:seed:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Random : MetalPerformanceShadersGraph.MPSGraph * int[] * MetalPerformanceShadersGraph.MPSGraphRandomOpDescriptor * unativeint * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
shape
Int32[]
seed
UIntPtr

unativeint

name
String

Returns

Attributes

Applies to