Integration of CNNs into backprop()