Share via


MPSGraph_MPSGraphTensorShapeOps.Slice Method

Definition

Overloads

Slice(MPSGraph, MPSGraphTensor, Int32[], Int32[], Int32[], UInt32, UInt32, UInt32, String)

[Foundation.Export("sliceTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Slice(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor tensor, int[] starts, int[] ends, int[] strides, uint startMask, uint endMask, uint squeezeMask, string? name);
[<Foundation.Export("sliceTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Slice : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * int[] * int[] * int[] * uint32 * uint32 * uint32 * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
starts
Int32[]
ends
Int32[]
strides
Int32[]
startMask
UInt32
endMask
UInt32
squeezeMask
UInt32
name
String

Returns

Attributes

Applies to

Slice(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphTensor, MPSGraphTensor, UInt32, UInt32, UInt32, String)

[Foundation.Export("sliceTensor:startTensor:endTensor:strideTensor:startMask:endMask:squeezeMask:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Slice(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor tensor, MetalPerformanceShadersGraph.MPSGraphTensor startTensor, MetalPerformanceShadersGraph.MPSGraphTensor endTensor, MetalPerformanceShadersGraph.MPSGraphTensor strideTensor, uint startMask, uint endMask, uint squeezeMask, string? name);
[<Foundation.Export("sliceTensor:startTensor:endTensor:strideTensor:startMask:endMask:squeezeMask:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Slice : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * uint32 * uint32 * uint32 * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
startTensor
MPSGraphTensor
endTensor
MPSGraphTensor
strideTensor
MPSGraphTensor
startMask
UInt32
endMask
UInt32
squeezeMask
UInt32
name
String

Returns

Attributes

Applies to

Slice(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphTensor, UInt32, String)

[Foundation.Export("sliceTensor:startTensor:sizeTensor:squeezeMask:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Slice(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor tensor, MetalPerformanceShadersGraph.MPSGraphTensor startTensor, MetalPerformanceShadersGraph.MPSGraphTensor sizeTensor, uint squeezeMask, string? name);
[<Foundation.Export("sliceTensor:startTensor:sizeTensor:squeezeMask:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Slice : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * uint32 * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
startTensor
MPSGraphTensor
sizeTensor
MPSGraphTensor
squeezeMask
UInt32
name
String

Returns

Attributes

Applies to

Slice(MPSGraph, MPSGraphTensor, Int32[], Int32[], Int32[], String)

[Foundation.Export("sliceTensor:starts:ends:strides:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Slice(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor tensor, int[] starts, int[] ends, int[] strides, string? name);
[<Foundation.Export("sliceTensor:starts:ends:strides:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Slice : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * int[] * int[] * int[] * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
starts
Int32[]
ends
Int32[]
strides
Int32[]
name
String

Returns

Attributes

Applies to

Slice(MPSGraph, MPSGraphTensor, UIntPtr, IntPtr, IntPtr, String)

[Foundation.Export("sliceTensor:dimension:start:length:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Slice(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor tensor, UIntPtr dimensionIndex, IntPtr start, IntPtr length, string? name);
[<Foundation.Export("sliceTensor:dimension:start:length:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Slice : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * unativeint * nativeint * nativeint * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
dimensionIndex
UIntPtr

unativeint

start
IntPtr

nativeint

length
IntPtr

nativeint

name
String

Returns

Attributes

Applies to