DeepLearning/Tensor/Tile - Maple Programming Help

Home : Support : Online Help : Programming : DeepLearning Package : Tensors : Operations on Tensors : DeepLearning/Tensor/Tile

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: Const:0}}\\ {\mathrm{Shape: \left[2, 2\right]}}\\ {\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: Tile:0}}\\ {\mathrm{Shape: \left[4, 6\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (2)
 > $\mathrm{Shape}\left(\mathrm{t2}\right)$
 $\left[{4}{,}{6}\right]$ (3)

Compatibility

 • The DeepLearning/Tensor/Tile command was introduced in Maple 2018.