s = torch.Tensor(2,3):fill(1) 关于fill指定数据填充的有关问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shaoyou223/article/details/84936242

需要改为如下的形式:

s = torch.Tensor(2,3).fill_(1)

猜你喜欢

转载自blog.csdn.net/shaoyou223/article/details/84936242