tensorflow::ops::StringJoin
#include <string_ops.h>
Joins the strings in the given list of string tensors into one tensor;.
Summary
with the given separator (default is an empty separator).
Examples:
s = ["hello", "world", "tensorflow"] tf.strings.join(s, " ")
Arguments:
- scope: A Scope object
- inputs: A list of string tensors. The tensors must all have the same shape, or be scalars. Scalars may be mixed in; these will be broadcast to the shape of non-scalar inputs.
Optional attributes (see Attrs
):
- separator: string, an optional join separator.
Returns:
-
Output
: The output tensor.
Constructors and Destructors | |
---|---|
StringJoin(const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs) | |
StringJoin(const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs, const StringJoin::Attrs & attrs) |
Public attributes | |
---|---|
operation | |
output |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
Separator(StringPiece x) |
Structs | |
---|---|
tensorflow::ops::StringJoin::Attrs | Optional attribute setters for StringJoin. |
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
StringJoin
StringJoin( const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs )
StringJoin
StringJoin( const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs, const StringJoin::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
Separator
Attrs Separator( StringPiece x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/string-join