@Operator public final class AssertThat extends PrimitiveOp
If `condition` evaluates to false, print the list of tensors in `data`. `summarize` determines how many entries of the tensors to print.
Modifier and Type | Class and Description |
---|---|
static class |
AssertThat.Options
Optional attributes for
AssertThat |
operation
Modifier and Type | Method and Description |
---|---|
static AssertThat |
create(Scope scope,
Operand<Boolean> condition,
Iterable<Operand<?>> data,
AssertThat.Options... options)
Factory method to create a class wrapping a new AssertThat operation.
|
static AssertThat.Options |
summarize(Long summarize) |
equals, hashCode, op, toString
public static AssertThat create(Scope scope, Operand<Boolean> condition, Iterable<Operand<?>> data, AssertThat.Options... options)
scope
- current scopecondition
- The condition to evaluate.data
- The tensors to print out when condition is false.options
- carries optional attributes valuespublic static AssertThat.Options summarize(Long summarize)
summarize
- Print this many entries of each tensor.Copyright © 2022. All rights reserved.