Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error report for max traces exceeded #176

Open
uduse opened this issue Jul 16, 2022 · 2 comments
Open

Better error report for max traces exceeded #176

uduse opened this issue Jul 16, 2022 · 2 comments

Comments

@uduse
Copy link

uduse commented Jul 16, 2022

In my experience, when chex reports max traces exceeded, it's usually because of me passing parameters to the function with different shapes or data types. Is it possible for chex to report such inconsistency?

e.g.,

AssertionError: [Chex] Function '_wrapper' is traced > 1 times!
Difference in input shapes. Last time variable `x` traced with shape "(10, 1)", this time traced with shape "(9, 1)".
@hbq1
Copy link
Collaborator

hbq1 commented Jul 18, 2022

Hey, thanks for the question - yes, it can be added! Would you like to send a PR?

@uduse
Copy link
Author

uduse commented Jul 18, 2022

@hbq1 I actually don't know how to do it in chex. I am doing stupid prints to debug this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants