-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Describe how to put inputs on GPU in Deep Learning tutorial #32
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
Conversation
|
Can you add that to a code cell, not as markdown? |
|
Do you want JUST that line or the full training block? |
|
Ah I see now, nevermind. Can you change the description a bit? To something more like "Remember that you'll have to send the inputs and targets at every step to the GPU too: |
|
OK, updated as suggested |
|
No action so closing |
|
Sorry, I must have read a notification about your update on the go, and forgot to merge it. Thanks! |
* fix formating on build model page
* fix formating on build model page
* refactor - till custom datasets * Updated data * updated buildmodel * update the other sections * final edits * A fix for one line comment when removing runnable code. (pytorch#1165) Co-authored-by: v-jizhang <66389669+buck-bot@users.noreply.github.com> * Update tutorials to use TensorPipeRpcBackendOptions. (pytorch#1164) * Update tutorials to use TensorPipeRpcBackendOptions. * Commit Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: * Commit2 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Co-authored-by: pritam <pritam.damania@fb.com> * Update dynamic quant tutorial for saving quantized model (pytorch#1167) Summary: Addresses pytorch/pytorch#43016 Test Plan: Reviewers: Subscribers: Tasks: Tags: * retitle dispatcher tutorial (pytorch#1168) * minor typo fixes (pytorch#1160) Co-authored-by: Brian Johnson <brianjo@fb.com> * Update saving_loading_models.py (pytorch#1173) * Removes Outdated Trainer Tutorial (pytorch#1181) * Update index.rst * Delete aws_distributed_training_tutorial.py * complete PyTorch quickstart proposal * Formatting and wording updates (pytorch#27) * corrected rebase errors * Some updates based on feedback to quickstart and build model (pytorch#29) * Added more detail to the intro of the quickstart * primitive dataset text update * fix build model * updated quickstart to class model (pytorch#30) * fix build model * updated quickstart to class model * Updates to quickstart main page, build model page based on feedback (pytorch#31) * updates to load class model, build model page work * more work on build model * small formatting fix on build model page (pytorch#32) * fix formating on build model page * build model formatting fixes (pytorch#33) * build model format fix * Update build_model_tutorial.py * Update build_model_tutorial.py * Update optimization_tutorial.py fixed footer * Update data_quickstart_tutorial.py fix image on data * Update data_quickstart_tutorial.py (pytorch#34) Addressed open comments * Update data_quickstart_tutorial.py (pytorch#35) Fixed links and formatting * Update data_quickstart_tutorial.py removed github markup * Update data_quickstart_tutorial.py * Update build_model_tutorial.py * Update data_quickstart_tutorial.py (pytorch#36) * build model section updates, breadcrumb test, linear wording fix (pytorch#37) * removed full top ex, moved sequential to layer ex * fixed linear layer wording * breadcrumb test * move TOC (pytorch#39) * removed full top ex, moved sequential to layer ex * fixed linear layer wording * breadcrumb test * rename for auto breadcrumb for tutorials * move table of contents to top * toc fix probably (pytorch#40) * how to use this guide text (pytorch#41) * removed code blocks moved toc (pytorch#42) * Make misc improvements to quickstart (pytorch#43) * Refactor buildmodel_tutorial.py to exclude sequential net definition (pytorch#44) * moved quickstart home folder, added breadcrumb * add callout quickstart on tutorials page, cap fix * checkin by Cassie: how to run code, fixed typo * checked in by cassie: quickstart updates typo fix * Refactor optimization tutorial * Formatting fixes to optimization tutorial * quickstart home page updates * tensor page edits * cassie checkin: data page review * Update save-load-run quickstart tutorial * checkin by cassie: review/fix transforms page * checkin by cassie: Fixed build model page * checkin by cassie: optimization page, add setup * autograd and optimzation page updates * checkin by cassie: save run load page review * Update beginner_source/quickstart/dataquickstart_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/dataquickstart_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/dataquickstart_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/dataquickstart_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/dataquickstart_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/transforms_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/transforms_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/transforms_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/transforms_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/transforms_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/transforms_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/transforms_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/transforms_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/autograd_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/autograd_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/buildmodel_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * checkin by cassie: fix spacing * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/saveloadrun_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/saveloadrun_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/saveloadrun_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/saveloadrun_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/saveloadrun_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/saveloadrun_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * fix link * Update beginner_source/quickstart/optimization_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * fix link * Update beginner_source/quickstart/saveloadrun_tutorial.py Co-authored-by: suraj813 <5676233+suraj813@users.noreply.github.com> * cassie checkin: add next prev links * fix links * fix links * toc tree test * cassie checkin: removed old next prev * Fix missing variable in saveloadrun_tutorial * Update beginner_source/quickstart/quickstart_tutorial.py * "DataSet" -> "Dataset" * Apply suggestions from code review -- buildmodel * add links to author names * formatting * add suraj as author * add loading dataset to data quickstart * init fucntion wording update on datasets * added iterate to datasets section * update quickstart title to 'learn the basics' * refactor - till custom datasets * Updated data * updated buildmodel * update the other sections * final edits Co-authored-by: Jinlin Zhang <jinlinzhang@fb.com> Co-authored-by: v-jizhang <66389669+buck-bot@users.noreply.github.com> Co-authored-by: Pritam Damania <9958665+pritamdamania87@users.noreply.github.com> Co-authored-by: pritam <pritam.damania@fb.com> Co-authored-by: supriyar <supriyar@fb.com> Co-authored-by: Basil Hosmer <bhosmer@fb.com> Co-authored-by: Jeff Tang <jeff.x.tang@gmail.com> Co-authored-by: Brian Johnson <brianjo@fb.com> Co-authored-by: Yuxin Wu <ppwwyyxxc@gmail.com> Co-authored-by: sethjuarez <me@sethjuarez.com> Co-authored-by: Cassie <46505951+cassieview@users.noreply.github.com> Co-authored-by: PythicCoder <aribornstein@gmail.com> Co-authored-by: Dmitri Soshnikov <dmitri@soshnikov.com> Co-authored-by: Cassie Breviu <cassieb@Microsoft.com>
Per discussion in Issues, adding a note on how to put the inputs on GPU.
Made as small a change a possible as opposed to adding a new executable cell etc.