Nicer error message when watching things other than tensors/resource vars.
It would fail on ndarrays with an numpy.dtype doesn't have is_floating check on the next line in any case, so this gives it a nicer error message. Also use the common RegisterType functionality to check for resource variables. PiperOrigin-RevId: 258407797
Showing
想要评论请 注册 或 登录