@Operator(group="strings") public final class ToHashBucket 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 ToHashBucket |
create(Scope scope,
Operand<String> stringTensor,
Long numBuckets)
Factory method to create a class wrapping a new ToHashBucket operation.
|
Output<Long> |
output()
A Tensor of the same shape as the input `string_tensor`.
|
equals, hashCode, op, toString
public static ToHashBucket create(Scope scope, Operand<String> stringTensor, Long numBuckets)
scope
- current scopestringTensor
- numBuckets
- The number of buckets.public Output<Long> 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<Long>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.