added CnnNet partial class to hold parameters