Fix tmp dir bug (#285)

This commit is contained in:
Chi_Liu
2022-08-22 15:00:35 -07:00
committed by GitHub
parent 4960efc686
commit 064aa3b1f4

View File

@@ -15,6 +15,8 @@
from torch_mlir.ir import StringAttr
import torch_mlir
from torch_mlir_e2e_test.linalg_on_tensors_backends import refbackend
import tempfile
from shark.parser import shark_args
def get_module_name_for_asm_dump(module):
@@ -62,6 +64,8 @@ def get_torch_mlir_module(
if jit_trace:
ignore_traced_shapes = True
tempfile.tempdir = shark_args.repro_dir
module = torch_mlir.compile(
module,
input,