DeepLearning - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : DeepLearning Package : Managing Dataflow Graphs : DeepLearning/ResetDefaultGraph

DeepLearning

  

ResetDefaultGraph

  

get the default computation session

 

Calling Sequence

Description

Examples

Compatibility

Calling Sequence

ResetDefaultGraph()

Description

• 

The ResetDefaultGraph() command closes the current default Session and resets the global default graph.

• 

Using any Session or Tensor objects previously defined after invoking ResetDefaultGraph() will result in undefined behavior.

• 

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

Examples

After this reset, t1 and t2 will no longer be defined.

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)

sessResetDefaultGraph

Compatibility

• 

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

• 

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

See Also

DeepLearning Overview