tensorflow::ops::StringToHashBucket
#include <string_ops.h>
Преобразует каждую строку в входном тензоре в её хэш по модулю числа ведер.
Краткое описание
Функция хэширования детерминирована для содержимого строки в процессе.
Обратите внимание, что функция хэширования может меняться со временем. Данная функциональность будет устаревать, и рекомендуется использовать tf.string_to_hash_bucket_fast() или tf.string_to_hash_bucket_strong().
Аргументы:
- scope: Объект Scope
- num_buckets: Число ведер.
Возвращает:
| Конструкторы и деструкторы | |
|---|---|
StringToHashBucket(const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, int64 num_buckets) |
| Публичные атрибуты | |
|---|---|
operation | |
output | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Публичные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Публичные функции
StringToHashBucket
StringToHashBucket( const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, int64 num_buckets )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/string-to-hash-bucket