DeepLearning/GetEagerExecution - Maple Help

DeepLearning

 GetEagerExecution
 test if eager execution is enabled
 SetEagerExecution
 enable or disable eager execution

 Calling Sequence GetEagerExecution() SetEagerExecution(s)

Parameters

 s - true or false; indicates whether eager execution should be enabled or disabled

Description

 • 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](..).

Examples

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $\mathrm{GetEagerExecution}\left(\right)$
 ${\mathrm{true}}$ (1)

Compatibility

 • The DeepLearning[GetEagerExecution] and DeepLearning[SetEagerExecution] commands were introduced in Maple 2021.