DL-Art-School/codes/onnx_inference.py

12 lines
180 B
Python
Raw Normal View History

2020-06-14 17:03:02 +00:00
import onnx
2020-05-19 15:36:04 +00:00
import numpy as np
import time
2020-06-14 17:03:02 +00:00
model = onnx.load('../results/gen.onnx')
outputs = {}
for n in model.graph.node:
for o in n.output:
outputs[o] = n
res = 0