U
- data type for values()
output@Operator public final class LookupTableFind<U> extends PrimitiveOp implements Operand<U>
The tensor `keys` must of the same type as the keys of the table. The output `values` is of the type of the table values.
The scalar `default_value` is the value output for keys not present in the table. It must also be of the same type as the table values.
operation
Modifier and Type | Method and Description |
---|---|
Output<U> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <U,T> LookupTableFind<U> |
create(Scope scope,
Operand<?> tableHandle,
Operand<T> keys,
Operand<U> defaultValue)
Factory method to create a class wrapping a new LookupTableFind operation.
|
Output<U> |
values()
Same shape as `keys`.
|
equals, hashCode, op, toString
public static <U,T> LookupTableFind<U> create(Scope scope, Operand<?> tableHandle, Operand<T> keys, Operand<U> defaultValue)
scope
- current scopetableHandle
- Handle to the table.keys
- Any shape. Keys to look up.defaultValue
- public Output<U> values()
public Output<U> 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<U>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.