DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+9 =
Submit