czy36mengfei / tensorflow2_tutorials_chinese

tensorflow2中文教程,持续更新(当前版本:tensorflow2.0),tag: tensorflow 2.0 tutorials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

022cnn的reshape

buzhihuoyefeng opened this issue · comments

cnn中为什么有这个步骤,第一维的负一是什么意思
x_train = x_train.reshape((-1,28,28,1))
x_test = x_test.reshape((-1,28,28,1))