DeepLearning
Concatenate
concatenate multiple Tensors
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Concatenate(L,axis,opts)
L
-
list or Array of Tensor or Variable objects, or list or Array of Layer objects
axis
nonnegint; axis on which to join
opts
zero or more options as specified below
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.
The Concatenate(L,axis,opts) command concatenates the list of Tensor objects L along the dimension specified by the zero-based index axis.
For example, if Tensors T1 and T2 have shape [2,3] and [4,3] respectively, then Concatenate([T1,T2],0) would join T1 and T2 in the first index, producing a Tensor with shape [6,3].
This function is part of the DeepLearning package, so it can be used in the short form Concatenate(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[Concatenate](..).
with⁡DeepLearning:
t1≔Ones⁡3,2
t1≔DeepLearning TensorShape: [3, 2]Data Type: float[4]
t2≔Zeros⁡3,4
t2≔DeepLearning TensorShape: [3, 4]Data Type: float[4]
t3≔Concatenate⁡t1,t2,1
t3≔DeepLearning TensorShape: [3, 6]Data Type: float[4]
Shape⁡t3
3,6
The DeepLearning[Concatenate] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
Download Help Document