From 0c354d9e4d46f208c4736c259756f9c866971fb0 Mon Sep 17 00:00:00 2001 From: Wouter Zwerink <35296208+wouterzwerink@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:05:57 +0200 Subject: [PATCH] Fix link to shared tensor page (#294) --- bindings/python/py_src/safetensors/torch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/py_src/safetensors/torch.py b/bindings/python/py_src/safetensors/torch.py index cf5c7fb..9c26ccd 100644 --- a/bindings/python/py_src/safetensors/torch.py +++ b/bindings/python/py_src/safetensors/torch.py @@ -95,7 +95,7 @@ def save_model( """ Saves a given torch model to specified filename. This method exists specifically to avoid tensor sharing issues which are - not allowed in `safetensors`. [More information on tensor sharing](torch_shared_tensors) + not allowed in `safetensors`. [More information on tensor sharing](../torch_shared_tensors) Args: model (`torch.nn.Module`): @@ -139,7 +139,7 @@ def load_model(model: torch.nn.Module, filename: str, strict=True) -> Tuple[List """ Loads a given filename onto a torch model. This method exists specifically to avoid tensor sharing issues which are - not allowed in `safetensors`. [More information on tensor sharing](torch_shared_tensors) + not allowed in `safetensors`. [More information on tensor sharing](../torch_shared_tensors) Args: model (`torch.nn.Module`): -- 2.43.0