how can I convert tensor shape to numpy array? This is what my data looks like:

I want it to be numpy array, instead of a tensor, so that i can convert it to a dataframe. Is there a way to do so?
thanks in advance!
Assuming that these are pytorch tensors, you can convert them to numpy arrays using the .numpy() method. Depending on whether your tensors are stored on the GPU or still attached to the graph you might have to add .cpu() and .detach().