On-manifold projected gradient descent | Synapse