8 onnx_model = onnx.load(
'e1_mlp.onnx')
11 input_shape1 = (1,784)
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(
"e1_mlp.ll",
"w")
28 out_file.write(lib.get_source())