public final class Assert 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 |
Assert.Options
Optional attributes for
Assert |
operation| Modifier and Type | Method and Description |
|---|---|
static Assert |
create(Scope scope,
Operand<Boolean> condition,
Iterable<Operand<?>> data,
Assert.Options... options)
Factory method to create a class to wrap a new Assert operation to the graph.
|
static Assert.Options |
summarize(Long summarize) |
equals, hashCode, toStringpublic static Assert create(Scope scope, Operand<Boolean> condition, Iterable<Operand<?>> data, Assert.Options... options)
scope - current graph scopecondition - The condition to evaluate.data - The tensors to print out when condition is false.options - carries optional attributes valuespublic static Assert.Options summarize(Long summarize)
summarize - Print this many entries of each tensor.Copyright © 2015–2019. All rights reserved.