DL-Art-School/codes/onnx_inference.py
James Betker 6c27ddc9b5 Misc
2020-06-14 11:03:02 -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