oreilly-japan / deep-learning-from-scratch

『ゼロから作る Deep Learning』(O'Reilly Japan, 2016)
MIT License
3.99k stars 3.34k forks source link

common/gradient.py内のnumerical_gradient関数におけるfloatキャストの必要性 #42

Closed narugit closed 5 years ago

narugit commented 5 years ago

該当箇所につきまして、tmp_valをfloat変換しておりますが、45行目と同様、変換が必要ないと思われます。

ご確認の程、宜しくお願い致します。

koki0702 commented 5 years ago

ご指摘の通りです。修正しておきます。

ありがとうございます。