tensorflow2_tutorials_chinese icon indicating copy to clipboard operation
tensorflow2_tutorials_chinese copied to clipboard

022cnn的reshape

Open buzhihuoyefeng opened this issue 4 years ago • 1 comments

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

buzhihuoyefeng avatar Jul 10 '20 01:07 buzhihuoyefeng

-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.

dale28 avatar Jul 10 '20 01:07 dale28