DeepLearning,Tensor,value - Maple Programming Help

Home : Support : Online Help : Programming : DeepLearning Package : Tensors : Operations on Tensors : DeepLearning/Tensor/value

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: Const:0}}\\ {\mathrm{Shape: \left[1\right]}}\\ {\mathrm{Data Type: float\left[4\right]}}\end{array}\right]$ (2)
 > $\mathrm{value}\left(t,\mathrm{session}=\mathrm{sess}\right)$
 $\left[\begin{array}{c}{7.50000000000000}\end{array}\right]$ (3)

Compatibility

 • The DeepLearning,Tensor,value command was introduced in Maple 2018.