Modifier and Type | Class and Description |
---|---|
static class |
Pad.Inputs<T extends TType,U extends TNumber> |
Modifier and Type | Field and Description |
---|---|
static String |
OP_NAME
The name of this op, as known by TensorFlow core engine
|
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of the tensor.
|
static <T extends TType,U extends TNumber> |
create(Scope scope,
Operand<T> input,
Operand<T> paddingValue,
Operand<U> paddingLow,
Operand<U> paddingHigh,
Operand<U> paddingInterior)
Factory method to create a class wrapping a new XlaPad operation.
|
Output<T> |
output()
Gets output.
|
public static final String OP_NAME
public Pad(Operation operation)
@Endpoint(describeByClass=true) public static <T extends TType,U extends TNumber> Pad<T> create(Scope scope, Operand<T> input, Operand<T> paddingValue, Operand<U> paddingLow, Operand<U> paddingHigh, Operand<U> paddingInterior)
T
- data type for XlaPad
output and operandsU
- data type for XlaPad
output and operandsscope
- current scopeinput
- A Tensor
of type T.paddingValue
- A scalar Tensor
of type T.paddingLow
- the padding to apply at the start of each input dimensions. Must
be a compile-time constant 1D tensor of length equal to rank of input.paddingHigh
- the padding to apply at the end of each input dimension. Must
be a compile-time constant 1D tensor of length equal to rank of input.paddingInterior
- the padding to apply between each input element. Must
be a compile-time constant 1D tensor of length equal to rank of input,
containing only non-negative values.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 TType>
OperationBuilder.addInput(Output)
Copyright © 2015–2022. All rights reserved.