Closed Moebits closed 3 months ago
This dependency doesn't work with PyInstaller, with error:
TorchScript requires source access in order to carry out compilation, make sure original .py files are available.
The solution is to replace torch.jit.script with torch.jit.script_if_tracing.
torch.jit.script
torch.jit.script_if_tracing
This dependency doesn't work with PyInstaller, with error:
The solution is to replace
torch.jit.script
withtorch.jit.script_if_tracing
.