Skip to content

Commit

Permalink
Fix tmp dir bug (nod-ai#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosLewis authored Aug 22, 2022
1 parent 4960efc commit 064aa3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shark/torch_mlir_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 064aa3b

Please sign in to comment.