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

Log input/output tensor stats #33

Open
charlesfrye opened this issue Jul 30, 2022 · 1 comment
Open

Log input/output tensor stats #33

charlesfrye opened this issue Jul 30, 2022 · 1 comment
Assignees

Comments

@charlesfrye
Copy link
Collaborator

As noted in discussion here, there can be a difference between the visualization the content of a Tensor as human-interpretable media and the actual contents of that Tensor.

So it's useful to have the raw values logged. But the raw tensor values are fat, unstructured blobs -- for an image, taking up space like a high-resolution bitmap rather than like a png.

Following the principle that 20% of the information can catch 80% of the bugs, we should instead log descriptive statistics of the input, output, and target tensors. Considerations for this kind of logging are discussed in the (private) 2021 repo here and here.

@charlesfrye charlesfrye self-assigned this Jul 30, 2022
@charlesfrye
Copy link
Collaborator Author

Prototyped this by having students implement it in an exercise and they found that training slowed down by a factor of 5. It should be possible to do this without slowing training and the torchmetrics code seems to be doing it the right way (applying running reduce operations), so this was surprising.

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

1 participant