MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _convert_assert

Function _convert_assert

tensorflow/python/ops/parallel_for/pfor.py:2655–2662  ·  view source on GitHub ↗
(pfor_input)

Source from the content-addressed store, hash-verified

2653
2654@RegisterPFor("Assert")
2655def _convert_assert(pfor_input):
2656 cond, cond_stacked, _ = pfor_input.input(0)
2657 if cond_stacked:
2658 cond = math_ops.reduce_all(cond)
2659
2660 data_list = [x.t for x in pfor_input.inputs][1:]
2661 return _create_op("Assert", [cond] + data_list, [],
2662 attrs=pfor_input.op.node_def.attr)
2663
2664
2665@RegisterPFor("Print")

Callers

nothing calls this directly

Calls 2

_create_opFunction · 0.85
inputMethod · 0.45

Tested by

no test coverage detected