Overview
The GeApi class provides the global GE initialization and termination functions.
The following is an example of calling the GE initialization interface:
1 2 3 4 5 6 7 8 9 10 11 12 13 | from ge.ge_global import GeApi # Initialize GE. config = { "ge.execDeviceId": "0", "ge.graphRunMode": "0" } GeApi.ge_initialize(config) #...Perform the operation... # Terminate GE. GeApi.ge_finalize() |
Parent topic: GeApi