Tile - Maple Help

# Online Help

###### All Products    Maple    MapleSim

DeepLearning/Tensor/Tile

tile a Tensor over specified dimensions

 Calling Sequence Tile(t,multiples,opts)

Parameters

 t - Tensor multiples - list of integers opts - zero or more options as specified below

Options

 • name=string

The value of option name specifies an optional name for this Tensor, to be displayed in output and when visualizing the dataflow graph.

Description

 • The Tile(t,multiples) command constructs a Tensor by tiling a given Tensor multiple times.
 • This operation creates a new Tensor by replicating input multiples times.
 • The size of the list multiples must correspond with the number of dimensions of t. For each i, multiples[i] specifies the number of repetitions in dimension i.

Examples

Here we begin with a 2x2 matrix and clone it twice vertically and three times horizontally, producing a 6x4 matrix.

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $\mathrm{t1}≔\mathrm{Constant}\left(⟨⟨1.,2.⟩|⟨3.,4.⟩⟩\right)$
 ${\mathrm{t1}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (1)
 > $\mathrm{t2}≔\mathrm{Tile}\left(\mathrm{t1},\left[2,3\right]\right)$
 ${\mathrm{t2}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (2)
 > $\mathrm{Shape}\left(\mathrm{t2}\right)$
 ${\mathrm{undefined}}$ (3)

Compatibility

 • The DeepLearning/Tensor/Tile command was introduced in Maple 2018.
 • For more information on Maple 2018 changes, see Updates in Maple 2018.

 See Also