tf.tile
Function
tf.tile(input, multiples, name=None)
tile n. 瓷砖
通过拼接一个给定的tensor构建一个新的tensor
Constructs a tensor by tiling a given tensor.
output tensor 的第i维有 input.dims(i) * multiples[i] 个元素
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 ‘i’th dimension. For example, tiling [a b c d] by [2] produces [a b c d a b c d].
Args:
input: A Tensor. 1-D or higher.
multiples: 一维整数tensor, 长度和输入tensor的维度相同
multiples: A Tensor. Must be one of the following types: int32, int64. 1-D. Length must be the same as the number of dimensions in input
name: A name for the operation (optional).
Returns:
A Tensor. Has the same type as input.