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

Function _stack

tensorflow/python/ops/parallel_for/pfor.py:63–68  ·  view source on GitHub ↗

stacks `t` `length` times.

(t, length)

Source from the content-addressed store, hash-verified

61
62
63def _stack(t, length):
64 """stacks `t` `length` times."""
65 ones = array_ops.ones_like(array_ops.shape(t))
66 multiples = array_ops.concat([length, ones], 0)
67 t = array_ops.tile(array_ops.expand_dims(t, 0), multiples)
68 return wrap(t, True)
69
70
71# The following stateful ops can be safely called once, and with the same

Callers 8

_create_init_valuesMethod · 0.85
_process_cond_stackedMethod · 0.85
stack_inputsMethod · 0.85
_unwrap_or_tileMethod · 0.85
_convert_stack_push_v2Function · 0.85

Calls 5

tileMethod · 0.80
wrapFunction · 0.70
shapeMethod · 0.45
concatMethod · 0.45
expand_dimsMethod · 0.45

Tested by

no test coverage detected