Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
tensoreflusso:: ops:: StringJoin
#include <string_ops.h>
Unisce le stringhe nell'elenco fornito di tensori di stringa in un tensore;.
Riepilogo
con il separatore specificato (il separatore predefinito è vuoto).
Esempi:
s = ["ciao", "mondo", "tensorflow"] tf.strings.join(s, " ")
Argomenti:
- scope: un oggetto Scope
- input: un elenco di tensori di stringa. I tensori devono avere tutti la stessa forma, ovvero essere scalari. Gli scalari possono essere mescolati; questi verranno trasmessi sotto forma di ingressi non scalari.
Attributi facoltativi (vedi Attrs
):
- separatore: stringa, un separatore di join opzionale.
Resi:
-
Output
: il tensore di uscita.
Funzioni pubbliche statiche |
---|
Separator (StringPiece x) | |
Attributi pubblici
Funzioni pubbliche
nodo
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
Funzioni pubbliche statiche
Separatore
Attrs Separator(
StringPiece x
)
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[null,null,["Ultimo aggiornamento 2025-07-27 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\nArguments:\n\n- scope: A [Scope](/versions/r2.3/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.3/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.3/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.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::InputList](/versions/r2.3/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.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::InputList](/versions/r2.3/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` inputs, const `[StringJoin::Attrs](/versions/r2.3/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.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_string_join_1ad7d4e015e3580cc089259af4c8de6a98) | `::`[tensorflow::Output](/versions/r2.3/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.3/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.3/api_docs/cc/struct/tensorflow/ops/string-join/attrs) | Optional attribute setters for [StringJoin](/versions/r2.3/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```"]]