GetDefaultSession - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DeepLearning

  

GetDefaultSession

  

get the default computation session

 

Calling Sequence

Description

Examples

Compatibility

Calling Sequence

GetDefaultSession()

Description

• 

The GetDefaultSession() command returns a Session object corresponding to the default session for the current thread.

• 

Note that this command requires that eager execution be turned off beforehand using the SetEagerExecution command.

• 

This function is part of the DeepLearning package, so it can be used in the short form GetDefaultSession(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[GetDefaultSession](..).

Examples

withDeepLearning:

SetEagerExecutionfalse

true

(1)

t1Tensor1.5,2.0

t1DeepLearning TensorName: Const:0Shape: [2]Data Type: float[4]

(2)

t2Tensor2.5,6.0

t2DeepLearning TensorName: Const_1:0Shape: [2]Data Type: float[4]

(3)

sessGetDefaultSession

sess:-Runt1t2

Compatibility

• 

The DeepLearning[GetDefaultSession] command was introduced in Maple 2018.

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

• 

The DeepLearning[GetDefaultSession] command was updated in Maple 2021.

• 

The  option was updated in Maple 2021.

See Also

DeepLearning Overview

GetDefaultGraph