@@ -121,7 +121,16 @@ commands on your Linux machine directly, outside of the container.
121
121
[ bazel remote build caching] ( https://github.com/pytorch/xla/blob/master/docs/source/contribute/bazel.md#remote-caching )
122
122
for faster builds.
123
123
124
- 2 . Open a new terminal window in VS Code. Since you are running as root in this
124
+ 1 . Make sure VSCode discovers the ` pytorch/xla ` repo so that diff highlighting
125
+ works (by default VSCode cannot discover it as it's nested inside the
126
+ ` pytorch ` repo):
127
+
128
+ 1 . Go to File > Add Folder to Workspace..., and add the ` pytorch/xla `
129
+ folder.
130
+ 1 . In the repository list, you should now see 3 repos: ` xla ` (for
131
+ ` pytorch/xla ` ), ` pytorch ` , and ` vision ` .
132
+
133
+ 1 . Open a new terminal window in VS Code. Since you are running as root in this
125
134
container, mark the repository directories as safe. The commands below assume
126
135
your workspace directory is ` torch ` , update the commands to use your workspace
127
136
directory.
@@ -132,7 +141,7 @@ commands on your Linux machine directly, outside of the container.
132
141
git config --global --add safe.directory /workspaces/torch/vision
133
142
```
134
143
135
- 3 . In the terminal window, run the following commands to build PyTorch,
144
+ 1 . In the terminal window, run the following commands to build PyTorch,
136
145
TorchVision, and PyTorch/XLA:
137
146
138
147
` ` ` bash
@@ -153,7 +162,7 @@ commands on your Linux machine directly, outside of the container.
153
162
-f https://storage.googleapis.com/libtpu-releases/index.html
154
163
` ` `
155
164
156
- 4 . If you are running on a TPU VM, ensure ` torch` and ` torch_xla` were built and
165
+ 1 . If you are running on a TPU VM, ensure ` torch` and ` torch_xla` were built and
157
166
installed correctly:
158
167
159
168
` ` ` bash
0 commit comments