AddMultiple - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

DeepLearning

 create a Tensor from pairwise sums of given Tensor objects

Parameters

 L - list of Tensor objects opts - (optional) options as described 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 AddMultiple(L,opts) command creates a Tensor in the active dataflow graph which is the pairwise sum of the Tensor objects in L.
 • The elements of the list L must be Tensors of the same shape.
 • This function is part of the DeepLearning package, so it can be used in the short form AddMultiple(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[AddMultiple](..).

Examples

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $\mathrm{t1}≔\mathrm{Ones}\left(\left[3,4\right],\mathrm{datatype}={\mathrm{float}}_{8}\right)$
 ${\mathrm{t1}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Shape: \left[3, 4\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (1)
 > $\mathrm{t2}≔\mathrm{Zeros}\left(\left[3,4\right],\mathrm{datatype}={\mathrm{float}}_{8}\right)$
 ${\mathrm{t2}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Shape: \left[3, 4\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (2)
 > $\mathrm{AddMultiple}\left(\left[\mathrm{t1},\mathrm{t2}\right]\right)$
 $\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Shape: \left[3, 4\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (3)

Compatibility

 • The DeepLearning[AddMultiple] command was introduced in Maple 2018.
 • For more information on Maple 2018 changes, see Updates in Maple 2018.