MPSNDArrayIdentity.Reshape 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
Reshape(MPSNDArray, Int32[])
Creates a reshaped view of an array on the CPU.
[Foundation.Export("reshapeWithSourceArray:shape:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSNDArray? Reshape(MetalPerformanceShaders.MPSNDArray sourceArray, int[] shape);
[<Foundation.Export("reshapeWithSourceArray:shape:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Reshape : MetalPerformanceShaders.MPSNDArray * int[] -> MetalPerformanceShaders.MPSNDArray
override this.Reshape : MetalPerformanceShaders.MPSNDArray * int[] -> MetalPerformanceShaders.MPSNDArray
Parameters
- sourceArray
- MPSNDArray
The source array.
- shape
- Int32[]
The new shape in TensorFlow dimension order.
Returns
A reshaped view, or null if aliasing isn't possible.
- Attributes
Applies to
Reshape(IMTLCommandBuffer, MPSNDArray, Int32[], MPSNDArray)
[Foundation.Export("reshapeWithCommandBuffer:sourceArray:shape:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSNDArray? Reshape(Metal.IMTLCommandBuffer? commandBuffer, MetalPerformanceShaders.MPSNDArray sourceArray, int[] shape, MetalPerformanceShaders.MPSNDArray? destinationArray);
[<Foundation.Export("reshapeWithCommandBuffer:sourceArray:shape:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Reshape : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
override this.Reshape : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
Parameters
- commandBuffer
- IMTLCommandBuffer
- sourceArray
- MPSNDArray
- shape
- Int32[]
- destinationArray
- MPSNDArray
Returns
- Attributes
Applies to
Reshape(IMTLCommandBuffer, MPSNDArray, UIntPtr[], MPSNDArray)
public MetalPerformanceShaders.MPSNDArray? Reshape(Metal.IMTLCommandBuffer? commandBuffer, MetalPerformanceShaders.MPSNDArray sourceArray, UIntPtr[] dimensionSizes, MetalPerformanceShaders.MPSNDArray? destinationArray);
member this.Reshape : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * unativeint[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
Parameters
- commandBuffer
- IMTLCommandBuffer
- sourceArray
- MPSNDArray
- dimensionSizes
-
UIntPtr[]
unativeint[]
- destinationArray
- MPSNDArray
Returns
Applies to
Reshape(IMTLComputeCommandEncoder, IMTLCommandBuffer, MPSNDArray, Int32[], MPSNDArray)
[Foundation.Export("reshapeWithCommandEncoder:commandBuffer:sourceArray:shape:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSNDArray? Reshape(Metal.IMTLComputeCommandEncoder? encoder, Metal.IMTLCommandBuffer? commandBuffer, MetalPerformanceShaders.MPSNDArray sourceArray, int[] shape, MetalPerformanceShaders.MPSNDArray? destinationArray);
[<Foundation.Export("reshapeWithCommandEncoder:commandBuffer:sourceArray:shape:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Reshape : Metal.IMTLComputeCommandEncoder * Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
override this.Reshape : Metal.IMTLComputeCommandEncoder * Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
Parameters
- encoder
- IMTLComputeCommandEncoder
- commandBuffer
- IMTLCommandBuffer
- sourceArray
- MPSNDArray
- shape
- Int32[]
- destinationArray
- MPSNDArray
Returns
- Attributes
Applies to
Reshape(IMTLComputeCommandEncoder, IMTLCommandBuffer, MPSNDArray, UIntPtr[], MPSNDArray)
public MetalPerformanceShaders.MPSNDArray? Reshape(Metal.IMTLComputeCommandEncoder? encoder, Metal.IMTLCommandBuffer? commandBuffer, MetalPerformanceShaders.MPSNDArray sourceArray, UIntPtr[] dimensionSizes, MetalPerformanceShaders.MPSNDArray? destinationArray);
member this.Reshape : Metal.IMTLComputeCommandEncoder * Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * unativeint[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
Parameters
- encoder
- IMTLComputeCommandEncoder
- commandBuffer
- IMTLCommandBuffer
- sourceArray
- MPSNDArray
- dimensionSizes
-
UIntPtr[]
unativeint[]
- destinationArray
- MPSNDArray