This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import torch.nn as nn | |
import os | |
import numpy as np | |
import shark_turbine.aot as aot | |
torch.manual_seed(42) | |
torch.cuda.manual_seed(42) | |
np.random.seed(42) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
out=notes/mlir/mul_2 | |
file=mul_2 | |
iree-compile ${out}/${file}.mlir \ | |
--iree-hal-target-backends=llvm-cpu \ | |
--iree-hal-dump-executable-files-to=${out} \ | |
-o ${out}/${file}.vmfb | |
# --iree-hal-cuda-llvm-target-arch=sm_80 \ | |
# --dump-compilation-phases-to=${out} \ |