1Introduction2 2Preliminaries3 2.1Tensorandvectorization.......................3 2.2Vectorcalculusandthechainrule.................4 3CNNinanutshell5 3.1Thearchitecture...........................5 3.2Theforwar