Unexpected input data type

Hi, I am running the example given on optimum github page and i am getting the following error on a window machine

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Unexpected input data type. Actual: (tensor(int32)) , expected: (tensor(int64))

Though i did not get the error when i run it on ubuntu machine.

Complete error

Traceback (most recent call last):
  File "main.py", line 34, in <module>
    read_root('how are you')
  File "main.py", line 29, in read_root
    ort_outputs = ort_model.evaluation_loop(tokenized_ds)
  File "D:\\facebook_Senti\venv\lib\site-packages\optimum\onnxruntime\model.py", line 98, in evaluation_loop
    preds = session.run(self.onnx_named_outputs, onnx_inputs)
  File "D:\facebook_Senti\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 192, in run
    return self._sess.run(output_names, input_feed, run_options)
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Unexpected input data type. Actual: (tensor(int32)) , expected: (tensor(int64))

Let’s move this discussion to InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Unexpected input data type. Actual: (tensor(int32)) , expected: (tensor(int64) - #2 by echarlaix as you are describing the same problem there.