Stay organized with collections
Save and categorize content based on your preferences.
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, " ")
Args:
- 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:
Public static functions
|
Separator(StringPiece x)
|
|
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
Separator
Attrs Separator(
StringPiece x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::StringJoin Class Reference\n\ntensorflow::ops::StringJoin\n===========================\n\n`#include \u003cstring_ops.h\u003e`\n\nJoins the strings in the given list of string tensors into one tensor;.\n\nSummary\n-------\n\nwith the given separator (default is an empty separator).\n\nExamples:\n\ns = \\[\"hello\", \"world\", \"tensorflow\"\\] tf.strings.join(s, \" \")\n\nArgs:\n\n- scope: A [Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- 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.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/string-join/attrs#structtensorflow_1_1ops_1_1_string_join_1_1_attrs)):\n\n- separator: string, an optional join separator.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The output tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [StringJoin](#classtensorflow_1_1ops_1_1_string_join_1a15c57f33fd4f7b08d95bf8cb9c05f0c9)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::InputList](/versions/r2.14/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` inputs)` ||\n| [StringJoin](#classtensorflow_1_1ops_1_1_string_join_1a43b051d46111b51b8b5d036b7aa003ad)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::InputList](/versions/r2.14/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` inputs, const `[StringJoin::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/string-join/attrs#structtensorflow_1_1ops_1_1_string_join_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_string_join_1aa505e860621ab8ebe74b66cb2237d671) | [Operation](/versions/r2.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_string_join_1ad7d4e015e3580cc089259af4c8de6a98) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_string_join_1a0e2875fbda42c85d6a67178b0167d873)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_string_join_1ac55b4cd4d63e5a3952e20cd5f02ae27c)`() const ` | |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_string_join_1a7c4a6cddda218bf07e100623c0c7ae32)`() const ` | |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [Separator](#classtensorflow_1_1ops_1_1_string_join_1a40a9c12772d32dd2fd3c40779dce2198)`(StringPiece x)` | [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/string-join/attrs#structtensorflow_1_1ops_1_1_string_join_1_1_attrs) |\n\n| ### Structs ||\n|-----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::StringJoin::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/string-join/attrs) | Optional attribute setters for [StringJoin](/versions/r2.14/api_docs/cc/class/tensorflow/ops/string-join#classtensorflow_1_1ops_1_1_string_join). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### StringJoin\n\n```gdscript\n StringJoin(\n const ::tensorflow::Scope & scope,\n ::tensorflow::InputList inputs\n)\n``` \n\n### StringJoin\n\n```gdscript\n StringJoin(\n const ::tensorflow::Scope & scope,\n ::tensorflow::InputList inputs,\n const StringJoin::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Separator\n\n```text\nAttrs Separator(\n StringPiece x\n)\n```"]]