Add dtype checks to Scatter ops to report error instead of core dump
Hi @evanrang Any update on this PR? Please. Thank you! This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you. Hi @evanrang Any update on this PR? Please. Thank you! Hi @evanrang I'm going to go ahead and close this PR, because it seems to have stalled. If you're still interested in pursing this (and responding to my comments), please feel free to reopen! Thank you!

Add dtype checks to Scatter ops(Assign*VariableOp, ResourceScatter*) to report error instead of core dump.
fix issues:
#60147 
#60121 
