Tile
tensorflow C++ API
Constructs a tensor by tiling a given tensor.
Summary
This operation creates a new tensor by replicatinginputmultiples
times. The output tensor’s i’th dimension hasinput.dims(i) * multiples[i]
elements, and the values ofinput
are replicatedmultiples[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]
.
Arguments:
- scope: A Scope object
- input: 1-D or higher.
- multiples: 1-D. Length must be the same as the number of dimensions in
input
Returns:
Output
: The output tensor.
Tile block
Source link :https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_array_ops.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
- Input input: A
Tensor
. - Input multiples: 1-D. Length must be the same as the number of dimensions in
input
Output:
- Output output: Output object of Tile class object.
Result:
- std::vector(Tensor)
result_output
: ATensor
the same type asinput
.
Using Method
※ input을 화장실 타일 깔듯이 여러개 셋팅하는 기능이다. multiples로 각 차원에 몇번 셋팅 할 것인지 정한다.