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

Manually invoke update of data.json. #55

Open
pascal-mueller opened this issue Aug 13, 2024 · 1 comment
Open

Manually invoke update of data.json. #55

pascal-mueller opened this issue Aug 13, 2024 · 1 comment

Comments

@pascal-mueller
Copy link

Hello,

I would like to look at the computational graph at different stages of it. For specific reason I have to use autograd.grad which seems doesn't update data.json at all. It seems that torchexplorer uses handle_step() to update the data.json which in turn is called in these two hooks:

    module.register_forward_pre_hook(pre_forward_hook)
    module.register_full_backward_hook(post_backward_hook)

I think those two hooks are never called when you use autograd.grad. I'd like to be able to check out the computational graph at any time, so I was wondering if there's a way to manually update data.json?

@spfrommer
Copy link
Owner

I'm not immediately sure how something like this should be handled, and unfortunately I'm too swamped at the moment to look into it myself. If you figure something out definitely feel free to update.

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