8 onnx_model = onnx.load(
'01_vecmul_a.onnx')
14 shape_dict = {input_name1: input_shape1, input_name2: input_shape2}
17 mod, params = relay.frontend.from_onnx(model=onnx_model, shape=shape_dict)
23 with relay.build_config(opt_level=opt_level):
24 graph, lib, params = relay.build_module.build(
25 mod, target, params=params)
29 out_file = open(
"01_vecmul_a.ll",
"w")
30 out_file.write(lib.get_source())