tensorflow::ops::Assert
#include <logging_ops.h>
Проверяет, что заданное условие истинно.
Краткое описание
Если condition принимает значение false, выводит список тензоров в data. summarize определяет, сколько элементов тензоров нужно вывести.
Аргументы:
- scope: объект Scope
- condition: Условие для проверки.
- data: Тензоры, которые нужно вывести, если условие ложно.
Необязательные атрибуты (см. Attrs):
- summarize: Вывести это количество элементов каждого тензора с помощью Print.
Возвращает:
- созданный
Operation
| Конструкторы и деструкторы | |
|---|---|
Assert(const ::tensorflow::Scope & scope, ::tensorflow::Input condition, ::tensorflow::InputList data) | |
Assert(const ::tensorflow::Scope & scope, ::tensorflow::Input condition, ::tensorflow::InputList data, const Assert::Attrs & attrs) |
| Открытые атрибуты | |
|---|---|
operation | |
| Открытые функции | |
|---|---|
operator::tensorflow::Operation() const | |
| Открытые статические функции | |
|---|---|
Summarize(int64 x) | |
| Структуры | |
|---|---|
| tensorflow::ops::Assert::Attrs | Методы задания необязательных атрибутов для Assert. |
Открытые атрибуты
operation
Operation operation
Открытые функции
Assert
Assert( const ::tensorflow::Scope & scope, ::tensorflow::Input condition, ::tensorflow::InputList data )
Assert
Assert( const ::tensorflow::Scope & scope, ::tensorflow::Input condition, ::tensorflow::InputList data, const Assert::Attrs & attrs )
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Открытые статические функции
Summarize
Attrs Summarize( int64 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/assert