Open sanatanSharma opened 5 years ago
I can't replicate the issue. Do you obtain the same error with the unit test? Which version of pyspark, onnxruntime, onnx, onnxmltools are you using?
I'm using Spark 2.4.3, onnxruntime 0.5.0, onnxmltools 1.5.0, onnx 1.5.0. I didn't run the actual test, just copied code from there on my local and downloaded the required file "sample.txt".
I'm also using Python 3.7.3
I was trying to run the test on my local spark but the code is not working. I've pasted the exact code which I ran down below and it breaks at the last line,
compare_results(expected, output, decimal=5)
. Almost all of the code below is copy-pasted from the actual test here.Since, this was not working out, I wrote a little line to compare predictions myself,
output[1] == expected[1]
, which showed that the expected and the outputs obtained through onnxruntime don't match. Also, sometimes my kernel dies at therun_onnx_model
call, which is weird too.I'm not sure what's going on here and any help would be appreciated.