MPSGraph_MPSGraphRandomOps.Random 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
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
- descriptor
- MPSGraphRandomOpDescriptor
- 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[]
- descriptor
- MPSGraphRandomOpDescriptor
- 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
- descriptor
- MPSGraphRandomOpDescriptor
- state
- 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
- descriptor
- MPSGraphRandomOpDescriptor
- 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[]
- descriptor
- MPSGraphRandomOpDescriptor
- state
- MPSGraphTensor
- 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[]
- descriptor
- MPSGraphRandomOpDescriptor
- seed
-
UIntPtr
unativeint
- name
- String
Returns
- Attributes