Skip to content

Set random seed #2438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 7, 2023
Merged

Set random seed #2438

merged 7 commits into from
Jun 7, 2023

Conversation

clee2000
Copy link
Contributor

@clee2000 clee2000 commented Jun 6, 2023

To make tutorial builds predictable, but still keep randomness when one rans it on Collab.
Also, reset default_device after every tutorial run

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 6, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/2438

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 4179a4f:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@netlify
Copy link

netlify bot commented Jun 6, 2023

Deploy Preview for pytorch-tutorials-preview ready!

Name Link
🔨 Latest commit 4179a4f
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/6480abc314270800080de40f
😎 Deploy Preview https://deploy-preview-2438--pytorch-tutorials-preview.netlify.app/advanced/neural_style_tutorial
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

clee2000 and others added 2 commits June 6, 2023 16:07
Co-authored-by: Nikita Shulga <[email protected]>
@malfet malfet marked this pull request as ready for review June 7, 2023 16:03
@malfet
Copy link
Contributor

malfet commented Jun 7, 2023

Made few small changes: remove set_default_device('cpu') from Change default device recipe and set default device to None (which is a default behavior)

@malfet malfet merged commit eaa2e90 into main Jun 7, 2023
@malfet malfet deleted the csl/reset branch June 7, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants