]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Fix link to shared tensor page (#294)
authorWouter Zwerink <35296208+wouterzwerink@users.noreply.github.com>
Fri, 7 Jul 2023 13:05:57 +0000 (15:05 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Jul 2023 13:05:57 +0000 (15:05 +0200)
bindings/python/py_src/safetensors/torch.py

index cf5c7fb13df6f3c56d68a7d634348dd6f2222c29..9c26ccd86e553334a25a7a3cb4c00ea1208d3f69 100644 (file)
@@ -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`):