import torch
import numpy
x = torch.tensor(2,2,2)
t = x.view(1,8)#输出数组的大小为1*8
t = x.view(-
torch中view函数的用法
最新推荐文章于 2023-08-08 21:20:19 发布
import torch
import numpy
x = torch.tensor(2,2,2)
t = x.view(1,8)#输出数组的大小为1*8
t = x.view(-