to automatically select the right mode. The serialization format for bn_
layers has also changed, but the code will still be able to deserialize older
bn_ objects.
to template arguments. This way, the type of a network specifies the entire
network architecture and most of the time the user doesn't even need to do
anything with layer constructors.