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

!82 Fix condition error

Merge pull request !82 from liuluobin/master
......@@ -41,7 +41,7 @@ def _eval_info(pred, truth, option):
ValueError, size of parameter pred or truth is 0.
ValueError, value of parameter option must be in ["precision", "accuracy", "recall"].
"""
if pred.size == 0 || truth.size == 0:
if pred.size == 0 or truth.size == 0:
raise ValueError("Size of pred or truth is 0.")
if option == "accuracy":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册