Spec-Zone.ru › TensorFlow 2.4

tf.experimental.numpy.issubdtype

Возвращает True, если первый аргумент является типом, который находится ниже или равен в иерархии типов.

tf.experimental.numpy.issubdtype(
    arg1, arg2
)

Параметры

arg1, arg2 : dtype_like тип или строка, представляющая тип.

Возвращаемое значение

out : bool

См. также

issubsctype, issubclass_ numpy.core.numerictypes : Обзор иерархии типов numpy.

Примеры

>>> 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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API