Maximum - Maple Help

DeepLearning,Tensor,Maximum

compute the pairwise maximum of two Tensors

DeepLearning,Tensor,Minimum

compute the pairwise minimum of two Tensors

 Calling Sequence Maximum(x,y,opts) Minimum(x,y,opts)

Parameters

 x - Tensor y - Tensor 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 Maximum(x,y,opts) command computes the pairwise maximum of Tensor objects x and y.
 • The Minimum(x,y,opts) command computes the pairwise minimum of Tensor objects x and y.

Examples

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $\mathrm{t1}≔\mathrm{Constant}\left(\left[\left[11.0,18.3\right],\left[12.1,20.3\right]\right],\mathrm{datatype}={\mathrm{float}}_{8}\right)$
 ${\mathrm{t1}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Shape: \left[2, 2\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (1)
 > $\mathrm{t2}≔\mathrm{Constant}\left(\left[\left[29.0,-5.7\right],\left[15.3,4.5\right]\right],\mathrm{datatype}={\mathrm{float}}_{8}\right)$
 ${\mathrm{t2}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Shape: \left[2, 2\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (2)
 > $\mathrm{Maximum}\left(\mathrm{t1},\mathrm{t2}\right)$
 $\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Shape: \left[2, 2\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (3)
 > $\mathrm{Minimum}\left(\mathrm{t1},\mathrm{t2}\right)$
 $\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Shape: \left[2, 2\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (4)

Compatibility

 • The DeepLearning,Tensor,Maximum and DeepLearning,Tensor,Minimum commands were introduced in Maple 2018.