Skip to content

_eval_forward is incomplete, breaking gradient checking #50

Description

@github-actions

File: leanpass/tensor.py

The private method _eval_forward is truncated after handling the '+' operation and never returns a value. grad_check relies on this method to compute forward passes with perturbed parameters. As it stands, calling grad_check will raise an exception or return None. Complete the implementation for all supported ops or raise a clear NotImplementedError if the method is intentionally unfinished.

Filed automatically by ai-issue-scan.

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions