Skip to content
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

[Doc|Train] Add Pytorch ResNet finetuning starter example #32936

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,13 @@ py_test_run_all_subdirectory(
extra_srcs = [],
tags = ["exclusive", "team:ml", "ray_air", "gpu"],
)

py_test(
name = "pytorch_resnet_finetune",
size = "large",
main = "test_myst_doc.py",
srcs = ["test_myst_doc.py"],
tags = ["exclusive", "team:ml", "gpu", "ray_air"],
data = ["//doc/source/train/examples/pytorch:train_pytorch_examples"],
args = ["--path", "doc/source/train/examples/pytorch/pytorch_resnet_finetune.ipynb"]
)
2 changes: 2 additions & 0 deletions doc/source/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ parts:
title: "Tune & PyTorch Example"
- file: train/examples/pytorch/torch_data_prefetch_benchmark/benchmark_example
title: "Torch Data Prefetching Benchmark"
- file: train/examples/pytorch/pytorch_resnet_finetune
title: "PyTorch Finetuning ResNet Example"
- file: train/faq
- file: train/api/api

Expand Down
5 changes: 5 additions & 0 deletions doc/source/train/examples/pytorch/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
filegroup(
name = "train_pytorch_examples",
srcs = glob(["*.ipynb"]),
visibility = ["//doc:__subpackages__"]
)
Loading