Spec-Zone.ru › TensorFlow C++

tensorflow::ops::StringToHashBucket

#include <string_ops.h>

Преобразует каждую строку во входном Tensor в остаток от деления её хеша на число сегментов.

Краткое описание

Хеш-функция детерминирована относительно содержимого строки в пределах процесса.

Обратите внимание, что хеш-функция может время от времени изменяться. Эта функциональность будет объявлена устаревшей; рекомендуется использовать tf.string_to_hash_bucket_fast() или tf.string_to_hash_bucket_strong().

Аргументы:

  • scope: объект Scope
  • num_buckets: число сегментов.

Возвращает:

  • Output: Tensor той же формы, что и входной string_tensor.
Конструкторы и деструкторы
StringToHashBucket(const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, int64 num_buckets)
Открытые атрибуты
operation
Operation
output
::tensorflow::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 

© 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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API