8 onnx_model = onnx.load(
'02_vecmul_b.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(
"02_vecmul_b.ll",
"w")
30 out_file.write(lib.get_source())