Learning to control non-equilibrium dynamics using local imperfect gradients | Synapse