DeepLearning
GetDefaultGraph
get default dataflow graph
Calling Sequence
Description
Examples
Compatibility
GetDefaultGraph()
The GetDefaultGraph() command returns a DataflowGraph object corresponding to the default dataflow graph 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 GetDefaultGraph(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[GetDefaultGraph](..).
Create a Tensor and verify it was created in the default dataflow graph.
with⁡DeepLearning:
SetEagerExecution⁡false
true
g≔GetDefaultGraph⁡
t≔Tensor⁡1.5,2.0
evalb⁡g=Graph⁡t
The DeepLearning[GetDefaultGraph] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
The DeepLearning[GetDefaultGraph] command was updated in Maple 2021.
The option was updated in Maple 2021.
See Also
DeepLearning Overview
GetDefaultSession
ResetDefaultGraph
Download Help Document