Transformations between deep neural networks