Fork me on GitHub 0
摘要: x = torch.tensor([1, 2, 3]) tensor([[1, 1, 1], [2, 2, 2], [3, 3, 3]]) x.reshape(-1) tensor([1, 1, 1, 2, 2, 2, 3, 3, 3]) view a = torch.arange(0,20) a. 阅读全文
posted @ 2020-09-23 22:36 amazingcode 阅读(187) 评论(0) 推荐(0) 编辑