Serializes a ConvolutionalNN into the CNN binary model format that is read back by ReadModelCNN.