DeepLearning
Session
get a new computation session
Calling Sequence
Description
Note
Examples
Compatibility
Session()
The Session() command returns a new Session object for the current DataflowGraph.
This function is part of the DeepLearning package, so it can be used in the short form Session(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[Session](..).
To obtain the default computation session for the current DataFlowGraph rather than a new session, use GetDefaultSession.
Here we execute the same simple graph (which just multiplies two Tensors) in the default computation session and in a new session.
with⁡DeepLearning:
a≔Variable⁡21.5,72.0,datatype=float8
a≔DeepLearning VariableName: Variable:0Shape: [2]Data Type: float[8]
b≔Variable⁡32.5,86.0,datatype=float8
b≔DeepLearning VariableName: Variable:0Shape: [2]Data Type: float[8]
c≔Variable⁡17.2,94.2,datatype=float8
c≔DeepLearning VariableName: Variable:0Shape: [2]Data Type: float[8]
The DeepLearning[Session] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
GetDefaultSession
Download Help Document