Skip to content

Commit 99d1446

Browse files
committed
test=develop
1 parent db06568 commit 99d1446

File tree

1 file changed

+1
-1
lines changed
  • python/paddle/fluid/layers

1 file changed

+1
-1
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4412,7 +4412,7 @@ def hsigmoid(input,
44124412
out = helper.create_variable_for_type_inference(dtype)
44134413
pre_out = helper.create_variable_for_type_inference(dtype)
44144414
dim = input.shape[1]
4415-
if ((num_classes < 2) or (num_classes is None)) and (not is_costum):
4415+
if ((num_classes is None) or (num_classes < 2)) and (not is_costum):
44164416
raise ValueError(
44174417
"num_classes must not be less than 2 with default tree")
44184418

0 commit comments

Comments
 (0)