Path homologies of deep feedforward networks