BATCH
divide the dataset into BATCHSIZE parts.批处理训练数据,把训练数据分成BATCHSIZE 份
BATCHSIZE
把所有data分成 batchsize份,每个BATCH 有data.size(0)//BATCHSIZE 条数据 !!!(注意不是每份数据batch条)
tensor.narrow(dim, start, length) # Returns a new tensor that is a narrowed version of this tensor
缩小数据,一般在batch后用,剪掉batch剩下的数据。 dim 表示维度。
<