class_id: 24
class_id: 7
class_id: 19
class_id: 7
class_id: 7
class_id: 27
class_id: 19
class_id: 7

I am getting output like this, where the input image for all of them is same and actual classid is 7 but it randomly gives other values as well. While in pytorch when i am doing this it works perfectly fine.
I have also updated the libtorch version and so the code.