Replies: 1 comment
-
I found that the problem was doing the sum. If i do the manual_seed before doing the random call I obtain the same results as in vanilla pytorch. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was just trying to figure out how pytorch lightning manage the rng_states and I found something that I do not completly understand. What I am trying to check if that after a call of torch.rand() the rng_state of torch_lightning is increased. In plain torch the test is something like this:
As expected the state has changed after a call of a random method. Then I tried to reproduce the same experiment on torch lightning using this code:
And the output is this one:
As you can see in that case the random generator state has not changed and I do not understand the reason for that. Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions