# Unexpected input data type

**URL:** <https://discuss.huggingface.co/t/unexpected-input-data-type/19318>\
**Category:** 🤗Optimum\
**Created:** [June 18, 2022, 9:58am UTC](https://discuss.huggingface.co/t/unexpected-input-data-type/19318 "2022-06-18T09:58:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![echarlaix](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/echarlaix/32/21754_2.png) [@echarlaix](https://discuss.huggingface.co/u/echarlaix)\
**Post date:** [June 29, 2022, 12:26pm UTC](https://discuss.huggingface.co/t/unexpected-input-data-type/19318/2 "2022-06-29T12:26:47Z")

</div>

Let’s move this discussion to [InvalidArgument: [ONNXRuntimeError] : 2 : INVALID\_ARGUMENT : Unexpected input data type. Actual: (tensor(int32)) , expected: (tensor(int64) - #2 by echarlaix](https://discuss.huggingface.co/t/invalidargument-onnxruntimeerror-2-invalid-argument-unexpected-input-data-type-actual-tensor-int32-expected-tensor-int64/19206/2) as you are describing the same problem there.

---

_[View the full topic](https://discuss.huggingface.co/t/unexpected-input-data-type/19318)._
