You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ TorchSharp.PyBridge is an extension library for [TorchSharp](https://github.com/
6
6
7
7
## Features
8
8
9
-
-**load_py Method**: Easily load PyTorch models saved in the standard Python format (using `torch.save`) directly into TorchSharp.
9
+
-**load_py**: Extension method for modules and optimizers for easily loading PyTorch models saved in the standard Python format (using `torch.save`) directly into TorchSharp.
10
10
11
11
> This only works for when the `state_dict` was saved and not the whole model, see example below.
12
12
13
-
-**save_py Method**: Save TorchSharp models in a format that can be directly loaded in PyTorch (using `torch.load`), offering cross-platform model compatibility.
13
+
-**save_py Method**: SExtension method for modules and optimizers for easily saving TorchSharp models in a format that can be directly loaded in PyTorch (using `torch.load`), offering cross-platform model compatibility.
14
14
15
-
As of version 1.1.0, there is now support for loading and saving the `optim.state_dict` in the `PyTorch` format as well.
15
+
-**load_safetensors**, **save_safetensors**: Extension methods for modules for easily saving and loading model weights using the [safetensors](https://github.com/huggingface/safetensors) format.
0 commit comments