tensorflow::ops::Assert
#include <logging_ops.h>
Проверяет, что заданное условие истинно.
Краткое описание
Если condition принимает значение ложь, выведите список тензоров в 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/versions/r2.9/api_docs/cc/class/tensorflow/ops/assert