文章概览
tensor处理
生成tensor
torch.rand,
torch.cat
合并数组
.tolist
数组转list类型
torch.cumsum累加
形状改变
sequeeze,[…,:,None]
detach分离出来,不带梯度
多想多做,发篇一作
torch.rand,
torch.cat
合并数组.tolist
数组转list类型sequeeze,[…,:,None]
detach分离出来,不带梯度
多想多做,发篇一作