DL-Art-School/codes/utils/onnx_inference.py
2020-07-10 09:45:48 -06:00

12 lines
180 B
Python

import onnx
import numpy as np
import time
model = onnx.load('../results/gen.onnx')
outputs = {}
for n in model.graph.node:
for o in n.output:
outputs[o] = n
res = 0