Save long tensors using OR wandb.log?

Hi all,
In my experimentation, I want to save some tensor_10k_size for a dataset which has 90k samples. so that I can compare how the tensors look for different datasets. It’s part of my thesis.
Which is a better option to save tensors in my scripts using‘filename’)


Hi Prachi,

It completely depends on what you are trying to do with the tensor. If you are trying to visualize the tensor (a tensor is usually presented as a histogram - unless it is of shape (W, H, C) in which case it can be coerced to an image - it can be logged using wandb.log.

If you want to load up those tensors again to be used in your code would be the way to go.


1 Like

Hi Ramit,
That was my hazy view, you made it clear.


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.