Skip to content

Commit 8102565

Browse files
Fix link
1 parent 744b5d3 commit 8102565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes_source/recipes/module_load_state_dict_tips.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def my_processing_function(key, device):
154154
# is loaded from state dict if ``assign=True`` is passed.
155155

156156
# As of PyTorch 2.3.0, one can use ``torch.__future__.set_swap_module_params_on_conversion`` to
157-
# avoid this caveat. This `recipe <https://pytorch.org/tutorials/recipes/recipes/module_load_state_dict_tips.html>`_
157+
# avoid this caveat. This `recipe <https://pytorch.org/tutorials/recipes/recipes/swap_tensors.html>`_
158158
# provides more details.
159159

160160
new_m.load_state_dict(state_dict, assign=True)

0 commit comments

Comments
 (0)