Skip to main content
. 2017 Nov 17;8(11):326. doi: 10.3390/genes8110326

Table A2.

Members of the variable train.

train.content A torch.ByteTensor that stores concatenated string data. Each string is ended with NULL (0).
train.index A lua table for which train.index[i] is a 2D torch.LongTensor. The train.index[i][j][k] indicates the offset in train.content for the string in class i, j-th sample and k-th field.
train.length A lua table for which train.length[i] is a 2D torch.LongTensor. The train.length[i][j][k] indicates the length for the string in class i, j-th sample and k-th field. The length does not count the ending NULL.