T
- data type for output()
outputpublic final class ResizeNearestNeighborGrad<T extends Number> extends PrimitiveOp implements Operand<T>
Modifier and Type | Class and Description |
---|---|
static class |
ResizeNearestNeighborGrad.Options
Optional attributes for
ResizeNearestNeighborGrad |
operation
Modifier and Type | Method and Description |
---|---|
static ResizeNearestNeighborGrad.Options |
alignCorners(Boolean alignCorners) |
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T extends Number> |
create(Scope scope,
Operand<T> grads,
Operand<Integer> size,
ResizeNearestNeighborGrad.Options... options)
Factory method to create a class wrapping a new ResizeNearestNeighborGrad operation.
|
static ResizeNearestNeighborGrad.Options |
halfPixelCenters(Boolean halfPixelCenters) |
Output<T> |
output()
4-D with shape `[batch, orig_height, orig_width, channels]`.
|
equals, hashCode, op, toString
public static <T extends Number> ResizeNearestNeighborGrad<T> create(Scope scope, Operand<T> grads, Operand<Integer> size, ResizeNearestNeighborGrad.Options... options)
scope
- current scopegrads
- 4-D with shape `[batch, height, width, channels]`.size
- = A 1-D int32 Tensor of 2 elements: `orig_height, orig_width`. The
original input size.options
- carries optional attributes valuespublic static ResizeNearestNeighborGrad.Options alignCorners(Boolean alignCorners)
alignCorners
- If true, the centers of the 4 corner pixels of the input and grad tensors are
aligned. Defaults to false.public static ResizeNearestNeighborGrad.Options halfPixelCenters(Boolean halfPixelCenters)
halfPixelCenters
- public Output<T> output()
public Output<T> 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<T extends Number>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.