RT
tensorflow实现capsule算法时不是很明白
def load_mnist(batch_size, is_training=True):
trX = trainX[:55000] / 255.
trY = trainY[:55000]
valX = trainX[55000:, ] / 255.
valY = trainY[55000:]
num_tr_batch = 55000 // batch_size
num_val_batch = 5000 // batch_size
return trX, trY, num_tr_batch, valX, valY, num_val_batch
这几句语句不是很明白,比如255后面加.是什么意思,还有//的意思,还有[:]里面逗号的意思,python学的比较浅,麻烦各位说一下大概意思