Distributed asynchronous deterministic and stochastic gradient optimization algorithms | Synapse