-
Notifications
You must be signed in to change notification settings - Fork 692
March 8 Update. ExecutionContext
Nick Gibson edited this page Mar 8, 2019
·
2 revisions
This week we made a large structural change to the way Graphs are built and CompiledFunctions are run. The execute()
function (and associated HostManager/DeviceManager interfaces) now take an ExecutionContext
object which replaces the old Context
object. The ExecutionContext
is a container for three objects required for execution in the Glow runtime:
- PlaceholderBindings (renamed from Context), which map input and output Placeholders to Tensors.
- DeviceBindings, which contain Device specific information pertaining to a specific run. This allows moving run specific state out of the CompiledFunction, allowing the same CompiledFunction to be executed on multiple devices concurrently.
- TraceEvents, which store any profiling events generated during the run.