Language

MPSNDArrayIdentity.ReshapeWithMtl4CommandEncoder Method

Definition

Overloads

Name Description
ReshapeWithMtl4CommandEncoder(IMTL4ComputeCommandEncoder, MPSNDArray, Int32[], MPSNDArray)

Encodes a reshape operation with a Metal 4 compute command encoder.

ReshapeWithMtl4CommandEncoder(IMTL4ComputeCommandEncoder, MPSNDArray, UIntPtr[], MPSNDArray)

Encodes a reshape operation with a Metal 4 compute command encoder.

ReshapeWithMtl4CommandEncoder(IMTL4ComputeCommandEncoder, MPSNDArray, Int32[], MPSNDArray)

Encodes a reshape operation with a Metal 4 compute command encoder.

[Foundation.Export("reshapeWithMTL4CommandEncoder:sourceArray:shape:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.UnsupportedSimulator("ios")]
public virtual void ReshapeWithMtl4CommandEncoder(Metal.IMTL4ComputeCommandEncoder encoder, MetalPerformanceShaders.MPSNDArray sourceArray, int[] shape, MetalPerformanceShaders.MPSNDArray destinationArray);
[Foundation.Export("reshapeWithMTL4CommandEncoder:sourceArray:shape:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void ReshapeWithMtl4CommandEncoder(Metal.IMTL4ComputeCommandEncoder encoder, MetalPerformanceShaders.MPSNDArray sourceArray, int[] shape, MetalPerformanceShaders.MPSNDArray destinationArray);
[Foundation.Export("reshapeWithMTL4CommandEncoder:sourceArray:shape:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.UnsupportedSimulator("tvos")]
public virtual void ReshapeWithMtl4CommandEncoder(Metal.IMTL4ComputeCommandEncoder encoder, MetalPerformanceShaders.MPSNDArray sourceArray, int[] shape, MetalPerformanceShaders.MPSNDArray destinationArray);
[<Foundation.Export("reshapeWithMTL4CommandEncoder:sourceArray:shape:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.UnsupportedSimulator("ios")>]
abstract member ReshapeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> unit
override this.ReshapeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> unit
[<Foundation.Export("reshapeWithMTL4CommandEncoder:sourceArray:shape:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ReshapeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> unit
override this.ReshapeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> unit
[<Foundation.Export("reshapeWithMTL4CommandEncoder:sourceArray:shape:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.UnsupportedSimulator("tvos")>]
abstract member ReshapeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> unit
override this.ReshapeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> unit

Parameters

encoder
IMTL4ComputeCommandEncoder

The Metal 4 compute command encoder.

sourceArray
MPSNDArray

The source array.

shape
Int32[]

The new shape in TensorFlow dimension order.

destinationArray
MPSNDArray

The destination array, whose shape must match shape.

Attributes

Remarks

The encoder associates the command with Dispatch. Synchronize dependent workloads against that stage to prevent race conditions.

Applies to

ReshapeWithMtl4CommandEncoder(IMTL4ComputeCommandEncoder, MPSNDArray, UIntPtr[], MPSNDArray)

Encodes a reshape operation with a Metal 4 compute command encoder.

[ObjCRuntime.UnsupportedSimulator("ios")]
[ObjCRuntime.UnsupportedSimulator("tvos")]
public void ReshapeWithMtl4CommandEncoder(Metal.IMTL4ComputeCommandEncoder encoder, MetalPerformanceShaders.MPSNDArray sourceArray, UIntPtr[] dimensionSizes, MetalPerformanceShaders.MPSNDArray destinationArray);
[<ObjCRuntime.UnsupportedSimulator("ios")>]
[<ObjCRuntime.UnsupportedSimulator("tvos")>]
member this.ReshapeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * unativeint[] * MetalPerformanceShaders.MPSNDArray -> unit

Parameters

encoder
IMTL4ComputeCommandEncoder

The Metal 4 compute command encoder.

sourceArray
MPSNDArray

The source array.

dimensionSizes

UIntPtr[]

unativeint[]

The extents of each dimension in the destination array.

destinationArray
MPSNDArray

The destination array, whose shape must match dimensionSizes.

Attributes

Remarks

The encoder associates the command with Dispatch. Synchronize dependent workloads against that stage to prevent race conditions.

Applies to