GetEagerExecution - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DeepLearning

  

GetEagerExecution

  

test if eager execution is enabled

  

SetEagerExecution

  

enable or disable eager execution

 

Calling Sequence

Parameters

Description

Examples

Compatibility

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

withDeepLearning:

GetEagerExecution

true

(1)

SetEagerExecutionfalse

true

(2)

GetEagerExecution

false

(3)

Compatibility

• 

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