th> a=torch.range(1,5)
                                                                      [0.0001s]
th> a
 1
 2
 3
 4
 5
[torch.DoubleTensor of size 5]

                                                                      [0.0002s]
th> a=torch.range(1,5,2)
                                                                      [0.0001s]
th> a
 1
 3
 5
[torch.DoubleTensor of size 3]

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-02-07
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案