Tensorflow 官方文档介绍
Constructs a tensor by tiling a given tensor.
This operation creates a new tensor by replicating input
multiples
times. The output tensor’s i’th dimension has input.dims(i) * multiples[i]
elements, and the values of input are replicated multiples[i]
times along the ith
dimension. For example, tiling [a b c d]
by [2]
produces [a b c d a b c d].
Args:
input
: ATensor
. 1-D or higher.multiples
: ATensor
of typeint32
. 1-D. Length must be the same as the number of dimensions ininput
name
: A name for the operation (optional).
Returns:
- A
Tensor
Has the Same tyoe asinput
.