What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind task
/kind feature

What does this PR do / why do we need it:

  1. fix get_py_obj_dtype, when dtype is a tensor build a tensor type.
  2. fix the bug in auto cast, when parameter signature is write, use ref_origin to calculate the type.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewers: