We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4960efc commit 064aa3bCopy full SHA for 064aa3b
shark/torch_mlir_utils.py
@@ -15,6 +15,8 @@
15
from torch_mlir.ir import StringAttr
16
import torch_mlir
17
from torch_mlir_e2e_test.linalg_on_tensors_backends import refbackend
18
+import tempfile
19
+from shark.parser import shark_args
20
21
22
def get_module_name_for_asm_dump(module):
@@ -62,6 +64,8 @@ def get_torch_mlir_module(
62
64
if jit_trace:
63
65
ignore_traced_shapes = True
66
67
+ tempfile.tempdir = shark_args.repro_dir
68
+
69
module = torch_mlir.compile(
70
module,
71
input,
0 commit comments