Rewrite tensor.eye implementation and kernel
#2937
+57
−56
Merged