Share via


MPSGraph_MPSGraphResizeOps.ResizeNearest Method

Definition

Overloads

ResizeNearest(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphResizeNearestRoundingMode, Boolean, Boolean, String)

[Foundation.Export("resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor ResizeNearest(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor imagesTensor, MetalPerformanceShadersGraph.MPSGraphTensor size, MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode nearestRoundingMode, bool centerResult, bool alignCorners, string? name);
[<Foundation.Export("resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member ResizeNearest : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode * bool * bool * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
imagesTensor
MPSGraphTensor
nearestRoundingMode
MPSGraphResizeNearestRoundingMode
centerResult
Boolean
alignCorners
Boolean
name
String

Returns

Attributes

Applies to

ResizeNearest(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphTensor, MPSGraphResizeNearestRoundingMode, MPSGraphTensorNamedDataLayout, String)

[Foundation.Export("resizeNearestWithTensor:sizeTensor:scaleOffsetTensor:nearestRoundingMode:layout:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor ResizeNearest(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor imagesTensor, MetalPerformanceShadersGraph.MPSGraphTensor size, MetalPerformanceShadersGraph.MPSGraphTensor scaleOffset, MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode nearestRoundingMode, MetalPerformanceShadersGraph.MPSGraphTensorNamedDataLayout layout, string? name);
[<Foundation.Export("resizeNearestWithTensor:sizeTensor:scaleOffsetTensor:nearestRoundingMode:layout:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member ResizeNearest : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode * MetalPerformanceShadersGraph.MPSGraphTensorNamedDataLayout * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
imagesTensor
MPSGraphTensor
scaleOffset
MPSGraphTensor
nearestRoundingMode
MPSGraphResizeNearestRoundingMode
name
String

Returns

Attributes

Applies to

ResizeNearest(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphTensor, MPSGraphTensor, MPSGraphResizeNearestRoundingMode, String)

[Foundation.Export("resizeNearestWithTensor:sizeTensor:scaleTensor:offsetTensor:nearestRoundingMode:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor ResizeNearest(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor imagesTensor, MetalPerformanceShadersGraph.MPSGraphTensor size, MetalPerformanceShadersGraph.MPSGraphTensor scale, MetalPerformanceShadersGraph.MPSGraphTensor offset, MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode nearestRoundingMode, string? name);
[<Foundation.Export("resizeNearestWithTensor:sizeTensor:scaleTensor:offsetTensor:nearestRoundingMode:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member ResizeNearest : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
imagesTensor
MPSGraphTensor
nearestRoundingMode
MPSGraphResizeNearestRoundingMode
name
String

Returns

Attributes

Applies to

ResizeNearest(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphResizeNearestRoundingMode, Boolean, Boolean, MPSGraphTensorNamedDataLayout, String)

[Foundation.Export("resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:layout:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor ResizeNearest(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor imagesTensor, MetalPerformanceShadersGraph.MPSGraphTensor size, MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode nearestRoundingMode, bool centerResult, bool alignCorners, MetalPerformanceShadersGraph.MPSGraphTensorNamedDataLayout layout, string? name);
[<Foundation.Export("resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:layout:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member ResizeNearest : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode * bool * bool * MetalPerformanceShadersGraph.MPSGraphTensorNamedDataLayout * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
imagesTensor
MPSGraphTensor
nearestRoundingMode
MPSGraphResizeNearestRoundingMode
centerResult
Boolean
alignCorners
Boolean
name
String

Returns

Attributes

Applies to