You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also you can learn how to profile your model and generate profiling data from [PyTorch Profiler](https://pytorch.org/tutorials/intermediate/tensorboard_profiler_tutorial.html?highlight=tensorboard).
39
39
40
-
Note: The recommended way to produce profiling data is assigning "torch.profiler.tensorboard_trace_handler"
41
-
to "on_trace_ready" on creation of "torch.profiler.schedule".
40
+
Note: The recommended way to produce profiling data is assigning `torch.profiler.tensorboard_trace_handler`
41
+
to `on_trace_ready` on creation of `torch.profiler.schedule`.
42
42
43
43
* Start TensorBoard
44
44
45
-
Specify the profiling data folder to "logdir" in Tensorboard. If you use the above samples data, start TensorBoard with:
45
+
Specify the profiling data folder to `logdir` in Tensorboard. If you use the above samples data, start TensorBoard with:
46
46
47
47
`tensorboard --logdir=./samples`
48
48
@@ -56,14 +56,17 @@ and give optimization recommendations.
56
56
* Open TensorBoard in Chrome browser
57
57
58
58
Open URL `http://localhost:6006` in the browser.
59
-
If you use '--bind_all' in tensorboard start cmd, the hostname may not be 'localhost'. You may find it in the log printed after the cmd.
59
+
If you use `--bind_all` in tensorboard start command, the hostname may not be 'localhost'. You may find it in the log printed after the cmd.
60
60
61
61
* Navigate to PYTORCH_PROFILER tab
62
62
63
63
If the files under `--logdir` are too big or too many,
64
64
please wait a while and refresh the browser to check latest loaded result.
65
-
* Also support loading profiling data stored in AWS(S3://), Azure blob(https://\<account\>.blob.core.windows.net) and Google Cloud(GS://)
66
-
* S3: install boto3. set environment variables: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`. Optionally, `S3_ENDPOINT` can be set as well.\
65
+
66
+
* Loading profiling data from cloud
67
+
* S3 (S3://)
68
+
69
+
install `boto3`. set environment variables: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`. Optionally, `S3_ENDPOINT` can be set as well.\
67
70
For minio, the S3 url should start with the bucket name `s3://<bucket>/<folder>/` instead of minio prefix `s3://minio/<bucket>/<folder>`. At the same time, the `S3_ENDPOINT` is needed as well. \
68
71
For example, the following command can be used to create minio storage after following guides:
0 commit comments