fix compute tensor problem

fix compute tensor problem