Last active
August 6, 2019 11:58
-
-
Save naxty/c9cc234e421b7b51f063b461f8c65ef0 to your computer and use it in GitHub Desktop.
Running a prediction with onnx runtime.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import onnxruntime as rt | |
import numpy | |
sess = rt.InferenceSession("boston_housting.onnx") | |
input_name = sess.get_inputs()[0].name | |
label_name = sess.get_outputs()[0].name | |
prediction = sess.run([label_name], {input_name: X_test.astype(numpy.float32)})[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment