Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::StringToHashBucket

#include <string_ops.h>

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

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

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

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

Аргументы:

  • scope: Объект Scope
  • num_buckets: Количество ведер.

Возвращает:

  • Output: Тензор той же формы, что и входной 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 

© 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/r1.15/api_docs/cc/class/tensorflow/ops/string-to-hash-bucket

Spec-Zone.ru

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