Skip to content

Commit 8aa882d

Browse files
author
Vincent Moens
committed
amend
1 parent 8a6f90d commit 8aa882d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.ci/docker/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pytorch-lightning
3030
torchx
3131
# TODO: use stable 0.5 when released
3232
-e git+https://github.com/pytorch/rl.git#egg=torchrl
33-
-e git+https://github.com/pytorch/tensordict.git@del-futures#egg=tensordict
33+
-e git+https://github.com/pytorch/tensordict.git#egg=tensordict
3434
ax-platform
3535
nbformat>==5.9.2
3636
datasets

intermediate_source/pinmem_nonblock.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,8 @@ def pin_copy_to_device_nonblocking(*tensors):
598598
#
599599

600600
######################################################################
601-
# ## Conclusion
601+
# Conclusion
602+
# ----------
602603
#
603604
# .. _pinmem_conclusion:
604605
#
@@ -610,7 +611,15 @@ def pin_copy_to_device_nonblocking(*tensors):
610611
# Remember that profiling your code and keeping an eye on the memory consumption are essential to optimize resource
611612
# usage and achieve the best possible performance.
612613
#
613-
# ## Additional resources
614+
# Additional resources
615+
# --------------------
614616
#
615617
# .. _pinmem_resources:
616618
#
619+
# If you are dealing with issues with memory copies when using CUDA devices or want to learn more about
620+
# what was discussed in this tutorial, check the following references:
621+
#
622+
# - `CUDA toolkit memory management doc <https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__MEMORY.html>`_
623+
# - `CUDA pin-memory note <https://forums.developer.nvidia.com/t/pinned-memory/268474>`_
624+
# - tensordict :meth:`~tensordict.TensorDict.to` method;
625+
#

0 commit comments

Comments
 (0)