CodeBlocks for Abstracting Logic Steps ======================================== The :class:`ppe.handler.CodeBlock ` API provides a mean of abstracting the actions that are possible to be done in a model in a device agnostic way. Currently there is support for two different actions using ``CodeBlock``. - :function:`ppe.handler.update_parameters ` takes a model, an optimizer and returns a ``CodeBlock`` object that performs the forward, backward and optimizer step at once. - :function:`ppe.handler.forward ` takes a model and returns a ``CodeBlock`` object that performs only the forward pass. Executing CodeBlocks ------------------------------- For executing ``CodeBlock`` objects we need to add an :method:`ppe.runtime.BaseRuntime.execute