Flexible transfer function per layer
Base of MLP classes in native extension: