tensor feature matching compilable but not working ok