@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class ResizeNearestNeighbor extends Pointer
images
to size
using nearest neighbor interpolation.
Arguments:
* scope: A Scope object
* images: 4-D with shape [batch, height, width, channels]
.
* size: = A 1-D int32 Tensor of 2 elements: new_height, new_width
. The
new size for the images.
Optional attributes (see Attrs
):
* align_corners: 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.
Returns:
* Output
: 4-D with shape
[batch, new_height, new_width, channels]
.Modifier and Type | Class and Description |
---|---|
static class |
ResizeNearestNeighbor.Attrs
Optional attribute setters for ResizeNearestNeighbor
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ResizeNearestNeighbor(Pointer p)
Pointer cast constructor.
|
ResizeNearestNeighbor(Scope scope,
Input images,
Input size) |
ResizeNearestNeighbor(Scope scope,
Input images,
Input size,
ResizeNearestNeighbor.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static ResizeNearestNeighbor.Attrs |
AlignCorners(boolean x) |
Input |
asInput() |
Output |
asOutput() |
static ResizeNearestNeighbor.Attrs |
HalfPixelCenters(boolean x) |
Node |
node() |
Operation |
operation() |
ResizeNearestNeighbor |
operation(Operation setter) |
Output |
resized_images() |
ResizeNearestNeighbor |
resized_images(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ResizeNearestNeighbor(Pointer p)
Pointer(Pointer)
.public ResizeNearestNeighbor(@Const @ByRef Scope scope, @ByVal Input images, @ByVal Input size)
public Node node()
@ByVal public static ResizeNearestNeighbor.Attrs AlignCorners(@Cast(value="bool") boolean x)
@ByVal public static ResizeNearestNeighbor.Attrs HalfPixelCenters(@Cast(value="bool") boolean x)
public ResizeNearestNeighbor operation(Operation setter)
public ResizeNearestNeighbor resized_images(Output setter)
Copyright © 2022. All rights reserved.