tensorflow warning for data types

What it's saying is that to conform to planned changes in numpy this line

np_resource = np.dtype([("resource", np.ubyte, 1)])

will need to be rewritten as

np_resource = np.dtype([("resource", np.ubyte, (1,))])

I don't think this is in your own code.

The relevant passage in numpy 1.17 is:

https://docs.scipy.org/doc/numpy/release.html#future-changes

This is a warning, not an error. In a similar recent SO, the poster got rid of it by switching to an earlier numpy version.

"synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'." problem in TensorFlow