Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

torch tensor to pandas dataframe

import torch
import pandas as  pd

x = torch.rand(4,4)
px = pd.DataFrame(x.numpy())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #torch #tensor #pandas #dataframe
ADD COMMENT
Topic
Name
1+6 =