DeepLearning
GetEagerExecution
test if eager execution is enabled
SetEagerExecution
enable or disable eager execution
Calling Sequence
Parameters
Description
Examples
Compatibility
GetEagerExecution()
SetEagerExecution(s)
s
-
true or false; indicates whether eager execution should be enabled or disabled
GetEagerExecution() returns a true or false value indicating whether eager execution is enabled or disabled.
SetEagerExecution(s) turns on eager execution if s is true and turns it off if s is false. A boolean is returned indicating the previous state of eager execution.
By default, eager execution is enabled.
This function is part of the DeepLearning package, so it can be used in the short form GetEagerExecution(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[GetEagerExecution](..).
with⁡DeepLearning:
GetEagerExecution⁡
true
SetEagerExecution⁡false
false
The DeepLearning[GetEagerExecution] and DeepLearning[SetEagerExecution] commands were introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
DeepLearning Overview
Download Help Document