Save the date! Google I/O returns May 18-20 Register now

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


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.


unzip(...): Unzip function transformation.


 sow: <function sow_unzip at 0x7ff2961b5950>