Closed epignatelli closed 5 months ago
Hey! An noted in the RNG guide, the random keys generated depend on the Module path. Because you get different paths for the Modules using the two variants that you showed here it is expected that they have different initial weights.
Ah, sorry -- I didn't look at it, it makes very much sense. Thanks for the quick answer!
Provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible also provide a summary of what steps or workarounds you have already tried.
System information
OS: Rocky 9
Libs
Python version: Python 3.10.12
GPU/TPU model and memory: Nvidia A100 80 Gb
What's the issue
When the exact same module is embedded as part of the properties of another, results are incorrect.
For example, in the following, I expect
Foo
andBar
to return the same values, but they don't.What you expected to happen:
Give the same results when
encoder
is:Steps to reproduce:
https://colab.research.google.com/drive/1NdBGB7ue1V-11ebJr8H4K3HFTh6OfJnM?usp=sharing