Created by: cjt222
fix bug between py2 and py3 #2392 while caulclate x1 and y1, round will have different result between py2 and py3, which result in different inference output