tensorflow2_tutorials_chinese
tensorflow2_tutorials_chinese copied to clipboard
022cnn的reshape
cnn中为什么有这个步骤,第一维的负一是什么意思 x_train = x_train.reshape((-1,28,28,1)) x_test = x_test.reshape((-1,28,28,1))
-1表示训练集的所有样本,比如有3000张照片,-1位置就会被自动替代为3000,你可以搜下reshape()使用方法
------------------ 原始邮件 ------------------ 发件人: "czy36mengfei/tensorflow2_tutorials_chinese" <[email protected]>; 发送时间: 2020年7月10日(星期五) 上午9:25 收件人: "czy36mengfei/tensorflow2_tutorials_chinese"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: [czy36mengfei/tensorflow2_tutorials_chinese] 022cnn的reshape (#19)
cnn中为什么有这个步骤,第一维的负一是什么意思 x_train = x_train.reshape((-1,28,28,1)) x_test = x_test.reshape((-1,28,28,1))
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.