Tensorflow :: ops :: ReduceJoin
#include <string_ops.h>
Verbindet einen String- Tensor über die angegebenen Dimensionen.
Zusammenfassung
Ermittelt die Saite über Abmessungen in der gegebenen Zeichenkette verbinden Tensor der Form [\\(d_0, d_1, ..., d_{n-1}\\)]
. Gibt einen neuen Tensor zurück, der durch Verbinden der Eingabezeichenfolgen mit dem angegebenen Trennzeichen erstellt wurde (Standard: leere Zeichenfolge). Negative Indizes werden ab dem Ende rückwärts gezählt, wobei -1
n - 1
. Wenn keine Indizes angegeben sind, werden Verknüpfungen über alle Dimensionen von n - 1
bis 0
.
Zum Beispiel:
# 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"
Argumente:
- scope: Ein Scope- Objekt
- Eingänge: Der Eingang, der verbunden werden soll. Alle reduzierten Indizes müssen eine Größe ungleich Null haben.
- reduktionsindizes: Die zu reduzierenden Dimensionen. Die Abmessungen werden in der angegebenen Reihenfolge reduziert. Das Weglassen von
reduction_indices
entspricht dem Übergeben von[n-1, n-2, ..., 0]
. Negative Indizes von-n
bis-1
werden unterstützt.
Optionale Attribute (siehe Attrs
):
- keep_dims: Wenn
True
, behalten Sie reduzierte Dimensionen mit der Länge1
. - Trennzeichen: Das beim Verbinden zu verwendende Trennzeichen.
Kehrt zurück:
-
Output
: Hat eine Form, die der der Eingabe entspricht, wobei reduzierte Abmessungen entfernt oder abhängig vonkeep_dims
auf1
keep_dims
.
Konstruktoren und Destruktoren | |
---|---|
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) |
Öffentliche Attribute | |
---|---|
operation | |
output |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
KeepDims (bool x) | |
Separator (StringPiece x) |
Strukturen | |
---|---|
tensorflow :: ops :: ReduceJoin :: Attrs | Optionale Attributsetzer für ReduceJoin . |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
ReduceJoin
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices )
ReduceJoin
ReduceJoin( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, ::tensorflow::Input reduction_indices, const ReduceJoin::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
KeepDims
Attrs KeepDims( bool x )
Separator
Attrs Separator( StringPiece x )