tensorflow::ops::StringFormat
#include <string_ops.h>
Форматирует шаблон строки, используя список тензоров.
Краткое описание
Форматирует шаблон строки, используя список тензоров, красиво выводя сводки тензоров.
Аргументы:
- scope: Объект Scope
- inputs: Список тензоров, которые будут отформатированы в строку-шаблон.
Необязательные атрибуты (см. Attrs):
- template_: Строка, шаблон для форматирования сводок тензоров.
- placeholder: Строка, в каждом месте в шаблоне, где будет вставлена сводка последующего тензора.
- 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 )
Template
Attrs Template( StringPiece x )
© 2022 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/api_docs/cc/class/tensorflow/ops/string-format