赞
踩
import torch target = torch.empty(3, dtype=torch.long) target
结果如下: 作用:
Returns a tensor filled with uninitialized data.
即,返回指定维度的,未经初始化的数组。一定程度上和随机数差不多。