You can change the value in the space pointed to by the pointer. I wouldn’t recommend doing this directly, though. There are helper methods like THTensor_getNd (where N is 1, 2, or 3) and THTensor_setNd.