tensoreflusso:: ops:: StringToHashBucketFast
#include <string_ops.h>Converte ogni stringa nel tensore di input nel relativo mod hash mediante un numero di bucket.
Riepilogo
 La funzione hash è deterministica sul contenuto della stringa all'interno del processo e non cambierà mai. Tuttavia, non è adatto per la crittografia. Questa funzione può essere utilizzata quando il tempo della CPU è scarso e gli input sono affidabili o non importanti. Esiste il rischio che gli avversari costruiscano input che vengono tutti inseriti nello stesso bucket. Per evitare questo problema, utilizzare una funzione hash forte con tf.string_to_hash_bucket_strong .
Argomenti:
- scope: un oggetto Scope
- input: le stringhe a cui assegnare un hash bucket.
- num_buckets: il numero di bucket.
Resi:
| Costruttori e distruttori | |
|---|---|
| StringToHashBucketFast (const :: tensorflow::Scope & scope, :: tensorflow::Input input, 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
StringToHashBucketFast
StringToHashBucketFast( const ::tensorflow::Scope & scope, ::tensorflow::Input input, int64 num_buckets )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const