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

Function _convert_print

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

Source from the content-addressed store, hash-verified

2664
2665@RegisterPFor("Print")
2666def _convert_print(pfor_input):
2667 # Note that we don't stack all the inputs. Hence unstacked values are printed
2668 # once here vs multiple times in a while_loop.
2669 pfor_input.stack_inputs([0])
2670 outputs = _create_op(
2671 "Print", [x.t for x in pfor_input.inputs],
2672 [x.dtype for x in pfor_input.outputs],
2673 attrs=pfor_input.op.node_def.attr).outputs
2674 return [wrap(x, True) for x in outputs]
2675
2676
2677# data_flow_ops

Callers

nothing calls this directly

Calls 3

_create_opFunction · 0.85
stack_inputsMethod · 0.80
wrapFunction · 0.70

Tested by

no test coverage detected