tensorflow::ops::StringFormat
#include <string_ops.h>
Форматирует шаблон строки с использованием списка тензоров.
Краткое описание
Форматирует шаблон строки, используя список тензоров, отображая сводки тензоров.
Аргументы:
- scope: Объект Scope
- inputs: Список тензоров для форматирования в строковый шаблон.
Необязательные атрибуты (см. Attrs):
- template_: Строка, шаблон для форматирования сводок тензоров.
- placeholder: Строка, в каждом местезаменителе в шаблоне будет вставлена последующая сводка тензора.
- summarize: При форматировании сводок тензоров отображаются первые и последние summarize элементы каждого измерения тензора.
Возвращает:
-
Output: = Результирующая скалярная строка.
| Конструкторы и деструкторы | |
|---|---|
StringFormat(const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs) | |
StringFormat(const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs, const StringFormat::Attrs & attrs) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Общедоступные статические функции | |
|---|---|
Placeholder(StringPiece x) | |
Summarize(int64 x) | |
Template(StringPiece x) | |
| Структуры | |
|---|---|
| tensorflow::ops::StringFormat::Attrs | Необязательные настройки атрибутов для StringFormat. |
Общедоступные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Общедоступные функции
StringFormat
StringFormat( const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs )
StringFormat
StringFormat( const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs, const StringFormat::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Общедоступные статические функции
Placeholder
Attrs Placeholder( StringPiece x )
Summarize
Attrs Summarize( int64 x )
Шаблон
Attrs Template( StringPiece x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/string-format