pytorch tensor
摘要:
import torch import numpy as np dd=[[1,2,3],[4,5,6],[7,8,9]] t=torch.tensor(dd) print(type(dd),type(t)) print(t.shape) t=t.reshape(1,9) print(t) print 阅读全文
posted @ 2021-07-17 21:22 lmqljt 阅读(51) 评论(0) 推荐(0) 编辑