tensorflow::ops::StringToHashBucket

#include <string_ops.h>

Converte ogni stringa nel tensore di input nel suo hash modulo un certo numero di bucket.

Riepilogo

La funzione hash è deterministica sul contenuto della stringa all'interno del processo.

Si noti che la funzione hash potrebbe cambiare di volta in volta. Questa funzionalità verrà deprecata e si consiglia di utilizzare tf.string_to_hash_bucket_fast() o tf.string_to_hash_bucket_strong() .

Argomentazioni:

  • ambito: un oggetto Scope
  • num_buckets: Il numero di bucket.

Resi:

  • Output : Un tensore della stessa forma del tensore di input string_tensor .

Costruttori e distruttori

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

attributi pubblici

operation
output

Funzioni pubbliche

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

attributi pubblici

operazione

Operation operation

produzione

::tensorflow::Output output

Funzioni pubbliche

StringToHashBucket

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

nodo

::tensorflow::Node * node() const 

operatore::tensorflow::Input

 operator::tensorflow::Input() const 

operatore::tensoreflusso::output

 operator::tensorflow::Output() const