mindspore/docs/api/api_python/ops/mindspore.ops.IsSubClass.rst

16 lines
467 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.IsSubClass
=========================
.. py:class:: mindspore.ops.IsSubClass
检查输入类型是否为其他类型的子类。
输入:
- **sub_type** (mindspore.dtype) - 要检查的类型。只允许为常量。
- **type_** (mindspore.dtype) - 目标类型。只允许为常量。
输出:
bool检查结果。
异常:
- **TypeError** - 如果 `sub_type``type_` 不是一种类型。