implementations of deep networks