Commit 3aca056
authored
Add "accelerator: GPU" to notebooks. (#1149)
* Use GPU
* update notebooks to use GPU
* add "Accelerator" to the required metadata
* Add accelerator metadata to all the Tutobooks.
[Automated]
If a file contains "TPUStartegy" use "TPU".
elif a file doesn't contain ".fit(" use "NONE".
else use "GPU".
For TPU the file list is:
"""
../examples/nlp/text_extraction_with_bert.py
../examples/keras_recipes/tfrecord.py
../examples/vision/xray_classification_with_tpus.py
../examples/vision/image_classification_efficientnet_fine_tuning.py
"""
For NONE the file list is:
"""
../examples/rl/deep_q_network_breakout.py:Accelerator: NONE
../examples/rl/ddpg_pendulum.py:Accelerator: NONE
../examples/rl/actor_critic_cartpole.py:Accelerator: NONE
../examples/rl/ppo_cartpole.py:Accelerator: NONE
../examples/generative/random_walks_with_stable_diffusion.py:Accelerator: NONE
../examples/generative/neural_style_transfer.py:Accelerator: NONE
../examples/generative/deep_dream.py:Accelerator: NONE
../examples/vision/grad_cam.py:Accelerator: NONE
../examples/vision/visualizing_what_convnets_learn.py:Accelerator: NONE
../examples/vision/probing_vits.py:Accelerator: NONE
../examples/vision/reptile.py:Accelerator: NONE
../examples/vision/near_dup_search.py:Accelerator: NONE
../examples/vision/integrated_gradients.py:Accelerator: NONE
../examples/vision/cait.py:Accelerator: NONE
../guides/understanding_masking_and_padding.py:Accelerator: NONE
../guides/writing_a_training_loop_from_scratch.py:Accelerator: NONE
../guides/keras_tuner/tailor_the_search_space.py:Accelerator: NONE
../guides/keras_tuner/visualize_tuning.py:Accelerator: NONE
../guides/keras_tuner/distributed_tuning.py:Accelerator: NONE
../guides/keras_cv/custom_image_augmentations.py:Accelerator: NONE
../guides/keras_cv/generate_images_with_stable_diffusion.py:Accelerator: NONE
../guides/keras_cv/coco_metrics.py:Accelerator: NONE
"""
* These ones benefit from having a GPU
* NONE -> None
* Drop accelerator for 'introduction_to_keras_for_*'1 parent 1ea3eb6 commit 3aca056
File tree
368 files changed
+389
-12
lines changed- examples
- audio
- ipynb
- generative
- ipynb
- graph
- ipynb
- keras_recipes
- ipynb
- nlp
- ipynb
- rl
- ipynb
- structured_data
- ipynb
- timeseries
- ipynb
- vision
- ipynb
- guides
- ipynb
- keras_cv
- keras_nlp
- keras_tuner
- keras_cv
- keras_nlp
- keras_tuner
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
368 files changed
+389
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| 650 | + | |
650 | 651 | | |
651 | 652 | | |
652 | 653 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
835 | 836 | | |
836 | 837 | | |
837 | 838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
| 1035 | + | |
1035 | 1036 | | |
1036 | 1037 | | |
1037 | 1038 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| 645 | + | |
645 | 646 | | |
646 | 647 | | |
647 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments