Commit 2e81f95
fix: fix PyTorchModel deployment crash on Windows (#1212)
Starting from version `1.2` deployment of PyTorchModel always
initiates repacking when uploading the code. It is done by
calling `_upload_code` with `repack=True` parameter.
On Windows, this will lead to a crash, because
`os.path.join` method used to generate `repacked_model_uri` will
use backslashes instead of slashes. So `utils.repack_model` will fail to parse it.1 parent 3fc162e commit 2e81f95
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
| 820 | + | |
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| |||
0 commit comments