8 onnx_model = onnx.load(
'04_dense_a.onnx')
12 shape_dict = {input_name1: input_shape1}
15 mod, params = relay.frontend.from_onnx(model=onnx_model, shape=shape_dict)
21 with relay.build_config(opt_level=opt_level):
22 graph, lib, params = relay.build_module.build(
23 mod, target, params=params)
27 out_file = open(
"04_dense_a.ll",
"w")
28 out_file.write(lib.get_source())