oreilly-japan / deep-learning-from-scratch-3

『ゼロから作る Deep Learning ❸』(O'Reilly Japan, 2020)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

step34.pyのflatten()について

kawase621 opened this issue · comments

step34.pyのコードで、y.dataとx.grad.dataにflatten()が実行されていますが、当該処理は必要でしょうか?
y及びx.gradが保持するdataはいずれも最初から1次元配列だと思うのですが。

確かに、この flatten() は必要ないですね。
こちら修正したいとおもいます。

ご指摘、ありがとうございます!