tensoreflusso:: ops:: RiduciUnisciti
#include <string_ops.h>Unisce un tensore di stringa attraverso le dimensioni indicate.
Riepilogo
 Calcola il join di stringhe tra le dimensioni nella stringa data Tensore di forma [\\(d_0, d_1, ..., d_{n-1}\\)] . Restituisce un nuovo tensore creato unendo le stringhe di input con il separatore specificato (impostazione predefinita: stringa vuota). Gli indici negativi vengono contati all'indietro dalla fine, dove -1 equivale a n - 1 . Se gli indici non sono specificati, unisce tutte le dimensioni a partire da n - 1 fino a 0 .
Per esempio:
# tensor `a` is [["a", "b"], ["c", "d"]] tf.reduce_join(a, 0) ==> ["ac", "bd"] tf.reduce_join(a, 1) ==> ["ab", "cd"] tf.reduce_join(a, -2) = tf.reduce_join(a, 0) ==> ["ac", "bd"] tf.reduce_join(a, -1) = tf.reduce_join(a, 1) ==> ["ab", "cd"] tf.reduce_join(a, 0, keep_dims=True) ==> [["ac", "bd"]] tf.reduce_join(a, 1, keep_dims=True) ==> [["ab"], ["cd"]] tf.reduce_join(a, 0, separator=".") ==> ["a.c", "b.d"] tf.reduce_join(a, [0, 1]) ==> "acbd" tf.reduce_join(a, [1, 0]) ==> "abcd" tf.reduce_join(a, []) ==> [["a", "b"], ["c", "d"]] tf.reduce_join(a) = tf.reduce_join(a, [1, 0]) ==> "abcd"
Argomenti:
- scope: un oggetto Scope
- input: l'input da unire. Tutti gli indici ridotti devono avere dimensione diversa da zero.
-  riduzione_indices: le dimensioni su cui ridurre. Le dimensioni vengono ridotte nell'ordine specificato. Omettere reduction_indicesequivale a passare[n-1, n-2, ..., 0]. Sono supportati gli indici negativi da-na-1.
 Attributi facoltativi (vedi Attrs ):
-  keep_dims: Se True, mantiene le dimensioni ridotte con lunghezza1.
- separatore: il separatore da utilizzare durante l'unione.
Resi:
-  Output: ha forma uguale a quella dell'input con dimensioni ridotte rimosse o impostate su1a seconda dikeep_dims.
| Costruttori e distruttori | |
|---|---|
| ReduceJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input reduction_indices) | |
| ReduceJoin (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs) | 
| Attributi pubblici | |
|---|---|
| operation | |
| output | |
| Funzioni pubbliche | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| Funzioni pubbliche statiche | |
|---|---|
| KeepDims (bool x) | |
| Separator (StringPiece x) | |
| Strutture | |
|---|---|
| tensorflow:: ops:: ReduceJoin:: Attrs | Setter di attributi facoltativi per ReduceJoin . | 
Attributi pubblici
operazione
Operation operation
produzione
::tensorflow::Output output
Funzioni pubbliche
RiduciUnisciti
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices )
RiduciUnisciti
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
Funzioni pubbliche statiche
KeepDims
Attrs KeepDims( bool x )
Separatore
Attrs Separator( StringPiece x )