Restez organisé à l'aide des collections Enregistrez et classez les contenus selon vos préférences.

tensorflow :: opérations :: StringToHashBucket

#include <string_ops.h>

Convertit chaque chaîne du Tensor d' entrée en son mod de hachage par un certain nombre de compartiments.

Résumé

La fonction de hachage est déterministe sur le contenu de la chaîne dans le processus.

Notez que la fonction de hachage peut changer de temps en temps. Cette fonctionnalité sera obsolète et il est recommandé d'utiliser tf.string_to_hash_bucket_fast() ou tf.string_to_hash_bucket_strong() .

Arguments:

  • scope: un objet Scope
  • num_buckets: le nombre de buckets.

Retour:

  • Output : un Tensor de la même forme que l'entrée string_tensor .

Constructeurs et destructeurs

StringToHashBucket (const :: tensorflow::Scope & scope, :: tensorflow::Input string_tensor, int64 num_buckets)

Attributs publics

operation
output

Fonctions publiques

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Attributs publics

opération

Operation operation

production

::tensorflow::Output output

Fonctions publiques

StringToHashBucket

 StringToHashBucket(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor,
  int64 num_buckets
)

nœud

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Output

 operator::tensorflow::Output() const