U - data type for output() outputpublic final class LowerBound<U extends Number> extends PrimitiveOp implements Operand<U>
Each set of rows with the same index in (sorted_inputs, values) is treated independently. The resulting row is the equivalent of calling `np.searchsorted(sorted_inputs, values, side='left')`.
The result is not a global index to the entire `Tensor`, but rather just the index in the last dimension.
A 2-D example: sorted_sequence = [[0, 3, 9, 9, 10], [1, 2, 3, 4, 5]] values = [[2, 4, 9], [0, 2, 6]]
result = LowerBound(sorted_sequence, values)
result == [[1, 2, 2], [0, 1, 5]]
operation| Modifier and Type | Method and Description |
|---|---|
Output<U> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> LowerBound<Integer> |
create(Scope scope,
Operand<T> sortedInputs,
Operand<T> values)
Factory method to create a class to wrap a new LowerBound operation to the graph, using default output types.
|
static <U extends Number,T> |
create(Scope scope,
Operand<T> sortedInputs,
Operand<T> values,
Class<U> outType)
Factory method to create a class to wrap a new LowerBound operation to the graph.
|
Output<U> |
output()
A `Tensor` with the same shape as `values`.
|
equals, hashCode, toStringpublic static <U extends Number,T> LowerBound<U> create(Scope scope, Operand<T> sortedInputs, Operand<T> values, Class<U> outType)
scope - current graph scopesortedInputs - 2-D Tensor where each row is ordered.values - 2-D Tensor with the same numbers of rows as `sorted_search_values`. Contains
the values that will be searched for in `sorted_search_values`.outType - public static <T> LowerBound<Integer> create(Scope scope, Operand<T> sortedInputs, Operand<T> values)
scope - current graph scopesortedInputs - 2-D Tensor where each row is ordered.values - 2-D Tensor with the same numbers of rows as `sorted_search_values`. Contains
the values that will be searched for in `sorted_search_values`.public Output<U> output()
public Output<U> asOutput()
OperandInputs 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<U extends Number>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.