Dose-efficient automatic differentiation for ptychographic reconstruction | Synapse