-
Hi, I have been playing with
In this example This leads to my two questions:
Note that I would like that the vjp lives in an Thank you very much for reading that far and for any help on this question. :) PS: I have read the related discussions but was not able to find the answer I was looking for :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
In this example you are only calling init. Because the params aren't initialized yet you will get a vjp for h but an empty dict as the vjp for params. When you call vf1.apply, z2 will contain a tangent for the params as well. You can also preinitialize the weights to get a param vjp even during init:
|
Beta Was this translation helpful? Give feedback.
In this example you are only calling init. Because the params aren't initialized yet you will get a vjp for h but an empty dict as the vjp for params. When you call vf1.apply, z2 will contain a tangent for the params as well.
You can also preinitialize the weights to get a param vjp even during init: