ahmedfgad/NumPyCNN

A code error in relu function

MapleSpirit opened this issue · 1 comments

The current relu function actually does no work for the feature_map.
The code relu_out[r, c, map_num] = numpy.max(feature_map[r, c, map_num], 0) should be written as
relu_out[r, c, map_num] = numpy.max([feature_map[r, c, map_num], 0])
And thanks for the code you shared!

Thanks. The bug is fixed according to your comment.