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

Logging Numpy arrays, Torch Tensors and Tensorflow Tensors #46

Open
BartKeulen opened this issue Apr 22, 2020 · 2 comments
Open

Logging Numpy arrays, Torch Tensors and Tensorflow Tensors #46

BartKeulen opened this issue Apr 22, 2020 · 2 comments

Comments

@BartKeulen
Copy link

Hi,

Thank you for this nice a simple tool for logging machine learning research. I often encounter situations where I would like to save multi-dimensional Numpy arrays. For example, the observation at each time-step in a reinforcement learning experiment.

It would be nice to have an output logger that supports Numpy arrays, Pytorch Tensors and Tensorflow Tensors.

I have written a simple output logger, NpzOutput, that writes Numpy arrays to a .npz file using Numpys savez functions. It is not optimal (no incremental saving), but thought I share it in case somebody is interested.

@ryanjulian
Copy link
Member

@BartKeulen thanks for sharing! We'd love a pull request, if you have the time.

@BartKeulen
Copy link
Author

Yes, that is possible. I will write the tests somewhere in the next 2 to 3 weeks and submit a pull request.

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