Menu

#15 Matrix multiply yields segfault

closed-fixed
nobody
None
5
2008-08-08
2008-08-07
No

require 'torch'
require 'lab'

x=torch.Tensor(10,15,3)
for i=1,10 do for j=1,15 do for k=1,3 do x[i][j][k] = k end end end
y=lab.reshape(x,150,3)
m=lab.mean(y)

z=y*m:t()

Discussion

  • Raoul d'Andresy

    Raoul d'Andresy - 2008-08-08

    Logged In: YES
    user_id=1651867
    Originator: NO

    Blas is sensitive to strides in a matrix, even if the number of columns is 1. THBlas has been changed to handle this particular case. Problem fixed.

     
  • Raoul d'Andresy

    Raoul d'Andresy - 2008-08-08
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB