dot函数是两个向量的点乘,注意lua中dot函数的写法

th> a
 1  2  3
[torch.DoubleTensor of size 1x3]

                                                                      [0.0002s]
th> b
 1  2  0
[torch.DoubleTensor of size 1x3]

                                                                      [0.0002s]
th> c=a:dot(b)
                                                                      [0.0001s]
th> c
5    
    

 

相关文章:

  • 2022-12-23
  • 2022-02-14
  • 2021-06-19
  • 2021-09-25
  • 2021-08-02
  • 2021-05-11
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-30
  • 2021-06-28
  • 2022-12-23
  • 2021-06-19
  • 2022-01-13
  • 2021-06-10
相关资源
相似解决方案