Returns True if first argument is a typecode lower/equal in type hierarchy.
tf.experimental.numpy.issubdtype( arg1, arg2 )
arg1, arg2 : dtype_like dtype or string representing a typecode.
out : bool
issubsctype, issubclass_ numpy.core.numerictypes : Overview of numpy type hierarchy.
>>> np.issubdtype('S1', np.string_) True >>> np.issubdtype(np.float64, np.float32) False
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/experimental/numpy/issubdtype