Modifier and Type | Class and Description |
---|---|
static class |
ResizeBicubic.Options
Optional attributes for
ResizeBicubic |
operation
Modifier and Type | Method and Description |
---|---|
static ResizeBicubic.Options |
alignCorners(Boolean alignCorners) |
Output<Float> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T extends Number> |
create(Scope scope,
Operand<T> images,
Operand<Integer> size,
ResizeBicubic.Options... options)
Factory method to create a class wrapping a new ResizeBicubic operation.
|
static ResizeBicubic.Options |
halfPixelCenters(Boolean halfPixelCenters) |
Output<Float> |
resizedImages()
4-D with shape
`[batch, new_height, new_width, channels]`.
|
equals, hashCode, op, toString
public static <T extends Number> ResizeBicubic create(Scope scope, Operand<T> images, Operand<Integer> size, ResizeBicubic.Options... options)
scope
- current scopeimages
- 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.options
- carries optional attributes valuespublic static ResizeBicubic.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 static ResizeBicubic.Options halfPixelCenters(Boolean halfPixelCenters)
halfPixelCenters
- public Output<Float> resizedImages()
public Output<Float> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<Float>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.