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
выход
::tensorflow::Output output
Общедоступные функции
StringToHashBucket
StringToHashBucket( const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, int64 num_buckets )
узел
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/string-to-hash-bucket