Exact learning dynamics of deep linear networks with prior knowledge