MCPcopy Create free account
hub / github.com/alibaba/nann / Assert

Function Assert

tensorflow/tensorflow/python/ops/control_flow_ops.py:114–176  ·  view source on GitHub ↗

Asserts that the given condition is true. If `condition` evaluates to false, print the list of tensors in `data`. `summarize` determines how many entries of the tensors to print. NOTE: In graph mode, to ensure that Assert executes, one usually attaches a dependency: ```python # Ensure

(condition, data, summarize=None, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

_assert_at_most_n_trueFunction · 0.70
default_actionFunction · 0.70

Calls 6

_summarize_eagerFunction · 0.85
allFunction · 0.85
executing_eagerlyMethod · 0.80
condFunction · 0.70
joinMethod · 0.45
name_scopeMethod · 0.45

Tested by

no test coverage detected