022cnn的reshape
buzhihuoyefeng opened this issue · comments
都督美洲诸军事 commented
cnn中为什么有这个步骤,第一维的负一是什么意思
x_train = x_train.reshape((-1,28,28,1))
x_test = x_test.reshape((-1,28,28,1))
dale28 commented
-1表示训练集的所有样本,比如有3000张照片,-1位置就会被自动替代为3000,你可以搜下reshape()使用方法
…------------------ 原始邮件 ------------------
发件人: "czy36mengfei/tensorflow2_tutorials_chinese" <notifications@github.com>;
发送时间: 2020年7月10日(星期五) 上午9:25
收件人: "czy36mengfei/tensorflow2_tutorials_chinese"<tensorflow2_tutorials_chinese@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: [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.