typo in function name and bugfix for networks with no inputs
Authored by: hannesklarner 2016-03-16
Parent: [r185]
Child: [r187]