Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Integer overflow on large number of parameters #6611
While experimenting with my NN configuration, I stumbled over a NullPointerException during initialization of the MultiLayerNetwork:
Apparently the number of parameters was too large. This code segment looks a bit fishy:
The parameters are collected in a list of longs and accumulated in an int. Also the subsequent handling does not regard values < 0 for paramLength. This causes that flattenedParams is never initialized since it is assumed that there are no parameters.
No matter if my config makes sense, I would expect an Exception telling me to rethink my network design.
Yes, it should either work or should provide a useful exception.