
pytorch
神说哈喽我的
好的好的 对的对的
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Tensor开方报错
。 RuntimeError: "sqrt" not implemented for 'torch.LongTensor' tensor1 = t.tensor([[1,2,3], [4,5,6]]) print(tensor1) print(tensor1.sqrt()) print(t.tensor([1,2,3, 4,5,6])**0.5) print(t.tensor([1,2,3, 4,5,6],dtype.原创 2020-05-16 00:02:46 · 626 阅读 · 0 评论 -
TypeError: new(): argument 'size' must be tuple of ints, but found element of type float at pos 2
TypeError: new(): argument 'size' must be tuple of ints, but found element of type float at pos 2 如上,这个bug是我用python3跑python2程序的时候出现的bug # Down-Sampling curr_dim = conv_dim for i in ...原创 2020-02-21 00:59:09 · 30669 阅读 · 11 评论