DeepLearning - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : DeepLearning Package : Managing Sessions : DeepLearning/GetDefaultSession

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.

• 

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:

t1Tensor1.5,2.0

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

(1)

t2Tensor2.5,6.0

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

(2)

sessGetDefaultSession

sessDeepLearning Session<tensorflow.python.client.session.InteractiveSession object at 0x7fdaf0b8ebd0>

(3)

sess:-Runt1t2

3.7500000000000012.

(4)

Compatibility

• 

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

• 

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

See Also

DeepLearning Overview

GetDefaultGraph