Skip to content

Instantly share code, notes, and snippets.

@jnovikov
Created Aug 17, 2022
Embed
What would you like to do?
Onnx runtime poc
Pls download the https://drive.google.com/file/d/17ZzAfb_VLAAd_Xto9_Mb98o-x6_5YfMv/view?usp=sharing
import onnxruntime as rt
sess = rt.InferenceSession('./model_hack.onnx')
print(sess.get_inputs()[0].name)
print(sess.get_outputs()[0].name)
res = sess.run(['t_output'], {'f_input': [0]})
print(bytes(res[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment