This commit is contained in:
Michael Cusack
2023-08-04 16:55:26 +07:00
parent 11a8348dfc
commit ac2b435151
+6 -1
View File
@@ -1,6 +1,11 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""Saves the model as a TorchScript."""
"""Saves the model as a TorchScript.
The resulting file can be loaded in C++ code and then used for training or infrence with:
#include <torch/script.h>
torch::jit::Module module = torch::jit::load("model.pt")
"""
import glob
import os