I have found a function in the header file, whitch is
TH_API real *THTensor_(data)(const THTensor *self).
But its input is const type,I want to know if I can change the data of THTensor by it? Thanks!