Is torch.random with manual_seed less random within a jupyter code block #680
Replies: 1 comment
-
it's not a problem with notebooks, I just overlooked the fact that
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
in question 4 of the 00_pytorch_fundamentals_exercises
I set
manual_seed
each time before generating a random tensor but didn't got the answer as required.so i didn't set
manual_seed
when creating(1,7)
tensor. but surprisingly i got the required answer.but not setting
manual_seed
before creating a random tensor should give unpredictable resources right?so i visualise, visualise, visualised like in the attached image and found that setting a
manual_seed
makes less random within same code cell.heres my code below
edit:
after creating this i figured that the pattern of values remains same in the code block. like the third random tensor always starts with 0.2666
Beta Was this translation helpful? Give feedback.
All reactions