latentspace.

numerical differentiation for autograd