I am following the example to compile a PyTorch model to Relay. I want to save the compiled model to a file and have written:
temp = utils.tempdir()
path_lib = temp.relpath("compiled.tar")
lib.export_library(path_lib)
print(temp.listdir())
This runs without giving me much trouble ad prints “compiled.tar.” However, when I check the directory no file named “compiled.tar” shows up. Is there a reason for this and are there any steps I can take to troubleshoot?