mask = torch.zeros((4, 3), dtype=torch.int64) # or dtype=torch.ByteTensor mask[0, 0] = 1 mask[1, 1] = 1 mask[3, 0] = 1 print('Mask: ', mask) 使用PyTorch ...
確定! 回上一頁