tensorflow::ops::Assert

#include <logging_ops.h>

Asserts that the given condition is true.

Summary

If condition evaluates to false, print the list of tensors in data. summarize determines how many entries of the tensors to print.

Arguments:

  • scope: A Scope object
  • condition: The condition to evaluate.
  • data: The tensors to print out when condition is false.

Optional attributes (see Attrs):

  • summarize: Print this many entries of each tensor.

Returns:

Constructors and Destructors
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)
Public attributes
operation
Public functions
operator::tensorflow::Operation() const
Public static functions
Summarize(int64 x)
Structs
tensorflow::ops::Assert::Attrs

Optional attribute setters for Assert.

Public attributes

operation

Operation operation

Public functions

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 

Public static functions

Summarize

Attrs Summarize(
  int64 x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/assert