DeepLearning
SessionObject
object for DeepLearning computation session
Description
Creating and Using Sessions
Operations with Sessions
Examples
Compatibility
A Session is an object which encapsulates the context in which Tensor objects within a DataflowGraph are evaluated.
There can be more than one Session for the same DataflowGraph, and each Session has its own state and resources.
To obtain the default computation session for the current graph, use the GetDefaultSession command.
To obtain a new session, use the Session command.
The following functions can be performed with a Session.
Run
Here we execute the same simple graph (which performs arithmetic with three Tensors) in the default computation session and in a new session.
with⁡DeepLearning:
t1≔Variable⁡1.5,2.0,datatype=float8
t1≔DeepLearning VariableName: Variable:0Shape: [2]Data Type: float[8]
t2≔Variable⁡2.5,6.0,datatype=float8
t2≔DeepLearning VariableName: Variable:0Shape: [2]Data Type: float[8]
t3≔Variable⁡7.2,4.2,datatype=float8
t3≔DeepLearning VariableName: Variable:0Shape: [2]Data Type: float[8]
The DeepLearning[SessionObject] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
GetDefaultSession
Session
Download Help Document