StringToHashBucket
tensorflow C++ API
tensorflow::ops::StringToHashBucket
Converts each string in the input Tensor to its hash mod by a number of buckets.
Summary
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()
.
Arguments:
- scope: A Scope object
- num_buckets: The number of buckets.
Returns:
StringToHashBucket block
Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_string.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
- Input input: connect Input node.
- num_buckets : Input num_buckets in value.
Return:
- Output output : Output object of StringToHashBucket class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.