tensorflow::ops::StringFormat
#include <string_ops.h>
Форматирует строковый шаблон с помощью списка тензоров.
Краткое описание
Форматирует строковый шаблон с помощью списка тензоров, выводя сводные данные о тензорах в удобном для чтения виде.
Аргументы:
- scope: объект Scope
- inputs: список тензоров для подстановки в строку-шаблон.
Необязательные атрибуты (см. Attrs):
- template_: строка — шаблон для подстановки сводных данных о тензорах.
- placeholder: строка, вместо каждого заполнителя в шаблоне будет вставлена сводка следующего тензора.
- summarize: при форматировании сводных данных о тензорах выводить первые и последние элементы summarize каждого измерения тензора.
Возвращает:
-
Output: = результирующий скаляр типа string.
| Конструкторы и деструкторы | |
|---|---|
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