I am trying to use THFloatTensor_data(tensor), but I don’t see how to get the value [i,j] of a 2d tensor:
Imagine input is a 2d tensor, what I can do is:
float *int input_data = THFloatTensor_data(input)
Then, I have access to input_data[i]. But how can I have input_data[i][j] ?