5def main(nnpackage_path, backends="cpu"):
8 session = infer.session(nnpackage_path, backends)
11 input_size = session.input_size()
12 session.set_inputs(input_size)
14 outputs = session.inference()
16 print(f
"nnpackage {nnpackage_path.split('/')[-1]} runs successfully.")