Module: oryx.core.interpreters.unzip

Module for the unzip function transformation.

Unzip is a function transformation that looks for 'variable' instantiations and pulls out concretized variables for partial evaluation. Primitives that return variables are registered in the unzip_registry.

Unzip returns two functions:

  1. init - maps inputs to variables
  2. apply - maps variables and inputs to output

Classes

class UnzipTrace: Contains logic for handling UnzipTracers when tracing a function.

class UnzipTracer: Tracer whose state encapsulates if the inputs are keys.

class VariableError: Raised if unable to unzip a function.

Functions

unzip(...): Unzip function transformation.

unzip_registry