This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_torch_mlir.sh
executable file
·57 lines (49 loc) · 1.75 KB
/
run_torch_mlir.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
iree-run-module \
--device=local-task \
--module=output/torch-mlir/padding_1_1/linalg/cpu.vmfb \
--function=forward \
--input=@output/module_input.npy \
--output=@output/torch-mlir/padding_1_1/linalg/cpu_output.npy
iree-run-module \
--device=cuda \
--module=output/torch-mlir/padding_1_1/linalg/cuda.vmfb \
--function=forward \
--input=@output/module_input.npy \
--output=@output/torch-mlir/padding_1_1/linalg/cuda_output.npy
iree-run-module \
--device=local-task \
--module=output/torch-mlir/padding_2_2/linalg/cpu.vmfb \
--function=forward \
--input=@output/module_input.npy \
--output=@output/torch-mlir/padding_2_2/linalg/cpu_output.npy
iree-run-module \
--device=cuda \
--module=output/torch-mlir/padding_2_2/linalg/cuda.vmfb \
--function=forward \
--input=@output/module_input.npy \
--output=@output/torch-mlir/padding_2_2/linalg/cuda_output.npy
iree-run-module \
--device=local-task \
--module=output/torch-mlir/padding_1_1/tosa/cpu.vmfb \
--function=forward \
--input=@output/module_input.npy \
--output=@output/torch-mlir/padding_1_1/tosa/cpu_output.npy
iree-run-module \
--device=cuda \
--module=output/torch-mlir/padding_1_1/tosa/cuda.vmfb \
--function=forward \
--input=@output/module_input.npy \
--output=@output/torch-mlir/padding_1_1/tosa/cuda_output.npy
iree-run-module \
--device=local-task \
--module=output/torch-mlir/padding_2_2/tosa/cpu.vmfb \
--function=forward \
--input=@output/module_input.npy \
--output=@output/torch-mlir/padding_2_2/tosa/cpu_output.npy
iree-run-module \
--device=cuda \
--module=output/torch-mlir/padding_2_2/tosa/cuda.vmfb \
--function=forward \
--input=@output/module_input.npy \
--output=@output/torch-mlir/padding_2_2/tosa/cuda_output.npy