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

How to avoid issues with dictionaries? #8

Open
jj0mst opened this issue May 22, 2023 · 1 comment
Open

How to avoid issues with dictionaries? #8

jj0mst opened this issue May 22, 2023 · 1 comment

Comments

@jj0mst
Copy link

jj0mst commented May 22, 2023

Hello,

I found the repo and blog post very interesting and useful, especially the tensor serialization utility.

I've encountered similar problems with RAM usage, but in my case I have to use dictionaries to store data, or even dictionaries of list.

Can you confirm that the issues you presented may happen with dictionaries too? I also happen to see many "too many open files errors" due to this.

Secondly, how can I serialize dictionaries in a torch Tensor instead of using lists?

I could work with lists too, but it would be very complicated to retrieve the correct Tensor in the main processes then (I find dictionaries to be more flexible on this point of view).

@thesofakillers
Copy link

also interested. I saw this comment mention frozendicts (im guessing from this library).

@jj0mst, was wondering what solution you settled on in the meantime if you can share. Thanks!

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