如果使用外部的库函数random对pytorch的张量shuffle,同一个值可能会被取多次, ... 根据下标取对应的元素。import torchimport randoma = torch.rand(9)print('a:\n', ...
確定! 回上一頁