stacks `t` `length` times.
(t, length)
| 61 | |
| 62 | |
| 63 | def _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 |
no test coverage detected