jax-js
    Preparing search index...

    Class Jaxpr

    Typed intermediate representation for traced computations.

    Implements

    • FpHashable

    Constructors

    • Parameters

      • inBinders: Var[]
      • eqns: JaxprEqn[]
      • outs: Atom[]

      Returns Jaxpr

    Properties

    eqns: JaxprEqn[]
    inBinders: Var[]
    outs: Atom[]

    Methods

    • Gets a hash of this Jaxpr.

      Var identity is not considered in the hash, so two Jaxprs with the same order of assignments and operators but different variable IDs will resolve to the same hash (and toString representation).

      Returns bigint

    • Parameters

      • state: FpHash

      Returns void

    • Produce a simplified Jaxpr with basic optimizations applied.

      • Trim away unused variables.
      • Fold away *1, *0, or +0 operations against literals.
      • Remove no-op movement operations.

      Returns Jaxpr

    • Returns a string representation of an object.

      Returns string