-
Hi! Are |
Beta Was this translation helpful? Give feedback.
Answered by
drbeh
Apr 28, 2022
Replies: 2 comments 1 reply
-
Hi @drbeh , Could you please help share some comments about this question? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @hw-ju, Thanks for your question. They are not exactly the same but very similar. They both define the span of an event but there are two differences:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
drbeh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @hw-ju,
Thanks for your question. They are not exactly the same but very similar. They both define the span of an event but there are two differences:
with Range
usestorch.cuda.nvtx
and it only depends on the cuda version of PyTorch. However,with nvtx.annotate
usesnvtx
library directly, so it depends onnvtx
being installed.with Range
usesrange_push
andrange_pop
on the backend to define the context, so it inherit their limitations like they currently does not support to change the range color, while inwith nvtx.annotate
you can set the color in the input argument.