Modifier and Type | Class and Description |
---|---|
static class |
ResizeNearestNeighborGrad.Inputs<T extends TNumber> |
static class |
ResizeNearestNeighborGrad.Options
Optional attributes for
ResizeNearestNeighborGrad |
Modifier and Type | Field and Description |
---|---|
static String |
OP_NAME
The name of this op, as known by TensorFlow core engine
|
Constructor and Description |
---|
ResizeNearestNeighborGrad(Operation operation) |
Modifier and Type | Method and Description |
---|---|
static ResizeNearestNeighborGrad.Options |
alignCorners(Boolean alignCorners)
Sets the alignCorners option.
|
Output<T> |
asOutput()
Returns the symbolic handle of the tensor.
|
static <T extends TNumber> |
create(Scope scope,
Operand<T> grads,
Operand<TInt32> sizeOutput,
ResizeNearestNeighborGrad.Options... options)
Factory method to create a class wrapping a new ResizeNearestNeighborGrad operation.
|
static ResizeNearestNeighborGrad.Options |
halfPixelCenters(Boolean halfPixelCenters)
Sets the halfPixelCenters option.
|
Output<T> |
output()
Gets output.
|
public static final String OP_NAME
public ResizeNearestNeighborGrad(Operation operation)
@Endpoint(describeByClass=true) public static <T extends TNumber> ResizeNearestNeighborGrad<T> create(Scope scope, Operand<T> grads, Operand<TInt32> sizeOutput, ResizeNearestNeighborGrad.Options... options)
T
- data type for ResizeNearestNeighborGrad
output and operandsscope
- current scopegrads
- 4-D with shape [batch, height, width, channels]
.sizeOutput
- = A 1-D int32 Tensor of 2 elements: orig_height, orig_width
. The
original input size.options
- carries optional attribute 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
- the halfPixelCenters optionpublic Output<T> output()
[batch, orig_height, orig_width, channels]
. Gradients
with respect to the input image.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 TNumber>
OperationBuilder.addInput(Output)
Copyright © 2015–2022. All rights reserved.