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

Not clear how to debug #176

Open
cool-RR opened this issue Apr 1, 2024 · 2 comments
Open

Not clear how to debug #176

cool-RR opened this issue Apr 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cool-RR
Copy link
Collaborator

cool-RR commented Apr 1, 2024

Description

I wanted to get a better idea of the values of variables on line 79 of iterated_matrix_game.py. I wanted to know what the observation is in that environment, since I couldn't understand it exactly from the way it was phrased in the paper. I stuck a jax.debug.breakpoint() in there, hoping that I could run pax.experiment and get the jdb prompt. However, the prompt did not show up.

Is there a way for me to use jax.debug.breakpoint() with Pax? Or do you have an alternative way to debug?

I tried jax.debug.print and it didn't work either.

What pax version are you using?

0.1.0b+2f5c2ed

What jax/jaxlib version are you using?

0.4.20

Which accelerator(s) are you using?

CPU

Additional system info

Python 3.11

NVIDIA GPU info

No response

@cool-RR cool-RR added the bug Something isn't working label Apr 1, 2024
@Aidandos
Copy link
Collaborator

Aidandos commented Apr 2, 2024

Can you just pass it through the runner state?

@cool-RR
Copy link
Collaborator Author

cool-RR commented Apr 3, 2024

I'm not sure what you mean. Say that I'm in the _step method of IteratedMatrixGame and I want to know the values of particular variables there, like r2 for example. How might I do the procedure you're suggesting so I'll see its value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants