I see functions like this throughout the torch library's C code:
long THTensor_(storageOffset)(const THTensor *self)
{
return self->storageOffset;
}
Is this a preprocessor thing, or something lua specific? The idea, I think has something to do with the fact that storageOffset
is a method of sorts on the THTensor
"class", but I've never seen this kind of syntax.
THTensor_
is just a macro