Skip to content

Serve torch do_reject rejection statistic from the LLt stash #298

Open

Description

@neuromechanist

PR #297 observed but deliberately did not take: under do_reject, torch's _sample_ll still runs a separate full forward pass to compute the rejection statistic, which the new E-step logV stash could serve for free — numpy already reads it from the stash. Left out of #297 to keep that PR to the write path, because changing the tensor layout the statistic derives from risks perturbing existing bit-exact do_reject results. Scope: reuse the stash for torch's rejection statistic with a bit-identity gate on the existing do_reject results (the #24-class parity bar), removing the extra pass per rejection cycle. Related: #157 (PR #297), #123.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions