value - Maple Help

DeepLearning,Tensor,value

compute value of Tensor object in the default session

 Calling Sequence value(t,fd,opts)

Parameters

 t - Tensor or list of Tensors fd - (optional) table or set or list of equations options - (optional) options as specified below

Options

 • session=Session

The value of option session is a Session object specifying the session in which to evaluate t. Its default value is the default session returned by GetDefaultSession.

Description

 • The value(t) command computes the value of the Tensor t in the default Session.
 • When no session option is provided, this call is equivalent to GetDefaultSession():-Run(t,dt).

Examples

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $\mathrm{sess}≔\mathrm{Session}\left(\right)$
 ${\mathrm{sess}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Session}}\\ {\mathrm{}}\end{array}\right]$ (1)
 > $t≔\mathrm{Constant}\left(\left[7.5\right],\mathrm{datatype}=\mathrm{float}\left[4\right]\right)$
 ${t}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[4\right]}}\end{array}\right]$ (2)

Compatibility

 • The DeepLearning,Tensor,value command was introduced in Maple 2018.
 • For more information on Maple 2018 changes, see Updates in Maple 2018.