@Operator public final class StringToHashBucket extends PrimitiveOp implements Operand<Long>
The hash function is deterministic on the content of the string within the process.
Note that the hash function may change from time to time. This functionality will be deprecated and it's recommended to use `tf.string_to_hash_bucket_fast()` or `tf.string_to_hash_bucket_strong()`.
operation| Modifier and Type | Method and Description |
|---|---|
Output<Long> |
asOutput()
Returns the symbolic handle of a tensor.
|
static StringToHashBucket |
create(Scope scope,
Operand<String> stringTensor,
Long numBuckets)
Factory method to create a class to wrap a new StringToHashBucket operation to the graph.
|
Output<Long> |
output()
A Tensor of the same shape as the input `string_tensor`.
|
equals, hashCode, toStringpublic static StringToHashBucket create(Scope scope, Operand<String> stringTensor, Long numBuckets)
scope - current graph scopestringTensor - numBuckets - The number of buckets.public Output<Long> 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<Long>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.