]> khamidou — GitHub mirrors - safetensors.git/commitdiff
fix syntax error in import statement (#276)
authorJakub Kaczmarzyk <jakub.kaczmarzyk@gmail.com>
Wed, 21 Jun 2023 10:21:48 +0000 (06:21 -0400)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 10:21:48 +0000 (12:21 +0200)
docs/source/torch_shared_tensors.mdx

index 2b5208fae381e6c0daa1c98a602fdff369f2393c..a0fd00b44d9ee15e9bc452e7159dc7522f123e8f 100644 (file)
@@ -7,7 +7,7 @@ Using specific functions, which should work in most cases for you.
 This is not without side effects.
 
 ```python
-from safetensors.torch load_model, save_model
+from safetensors.torch import load_model, save_model
 
 save_model(model, "model.safetensors")
 # Instead of save_file(model.state_dict(), "model.safetensors")