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

Specify weights or layer for dump weights callback #2165

Open
szaman19 opened this issue Dec 20, 2022 · 1 comment
Open

Specify weights or layer for dump weights callback #2165

szaman19 opened this issue Dec 20, 2022 · 1 comment

Comments

@szaman19
Copy link
Collaborator

Currently, the DumpWeights callback iterates through all the weights of a model and writes them to a specified directory.

Implementation here:

for (auto* w : m.get_weights()) {

For even moderately large models outputting all the weights is very time-consuming. It could be helpful for debugging purposes to have the ability to specify particular weights or layers in this callback to only dump those specific weights.

@benson31
Copy link
Collaborator

We should make DumpWeights, DumpGradients, and DumpErrorSignals just match the interface of DumpOutputs, which supports this feature.

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