提交 d74fbf86 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!4183 update OneHot parameter document

Merge pull request !4183 from anzhengqi/I1QKPJ-update-document
......@@ -31,7 +31,10 @@ class OneHot(cde.OneHotOp):
Tensor operation to apply one hot encoding.
Args:
num_classes (int): Number of classes of the label.
num_classes (int): Number of classes of the label, it should be bigger than feature size.
Raises:
RuntimeError: feature size is bigger than num_classes.
"""
@check_num_classes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册