Lei Wang

Results 6 comments of Lei Wang

Perhaps a more concrete example of my question: How train a [VAE](https://github.com/deepmind/dm-haiku/blob/main/examples/vae.py) using `kfac-jax`?

I guess the @GiggleLiu 's point is not to replace `expect'` by `Zygote`, but combine them together. For example, you can fill a parameter array with shared parameters, and then...

Thank you. Glad you find it is useful. There might be multiple places that need updating. For now, I will leave it as it is and keep your issue open....

> @Jakob-Unfried : I am facing the same problem and like your `safe_inverse` solution, but I'm not sure how to apply such a thing when doing backpropagation in Pytorch. Do...

Here is an example of how to use that function https://github.com/wangleiphy/tensorgrad/blob/master/tensornets/trg.py#L3-L4