MachineLearningLifeScience / stochman

Algorithms for computations on random manifolds made easier
Apache License 2.0
85 stars 11 forks source link

provide defaults that do not require Jacobians #8

Open sorenhauberg opened 2 years ago

sorenhauberg commented 2 years ago

Pytorch does practically speaking not support computing Jacobians, but does have reasonable support for Jacobian-vector products. We can leverage this to e.g. provide a default implementation of Manifold.inner(). To do this nicely we need some API for determining if 'embed' provides an optional Jacobian or not.