DeepLearning/Tensor/Tile - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

Parameters

Options

Description

Examples

Compatibility

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.

withDeepLearning:

t1Constant1.,2.|3.,4.

t1DeepLearning TensorName: Const:0Shape: [2, 2]Data Type: float[8]

(1)

t2Tilet1,2,3

t2DeepLearning TensorName: Tile:0Shape: [4, 6]Data Type: float[8]

(2)

Shapet2

4,6

(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

DeepLearning Overview

Tensor