public static class ResizeNearestNeighbor.Options extends Object
ResizeNearestNeighbor
Modifier and Type | Method and Description |
---|---|
ResizeNearestNeighbor.Options |
alignCorners(Boolean alignCorners) |
ResizeNearestNeighbor.Options |
halfPixelCenters(Boolean halfPixelCenters) |
public ResizeNearestNeighbor.Options alignCorners(Boolean alignCorners)
alignCorners
- If true, the centers of the 4 corner pixels of the input and output tensors are
aligned, preserving the values at the corner pixels. Defaults to false.public ResizeNearestNeighbor.Options halfPixelCenters(Boolean halfPixelCenters)
halfPixelCenters
- Copyright © 2022. All rights reserved.