未验证 提交 c417f991 编写于 作者: B Bai Yifan 提交者: GitHub

fix teacher_student_sigmoid_loss dtype check, test=develop (#24586)

上级 7fa9f16c
......@@ -1536,9 +1536,11 @@ def teacher_student_sigmoid_loss(input,
cost = fluid.layers.teacher_student_sigmoid_loss(input=similarity, label=label)
"""
check_variable_and_dtype(input, "input", ['float32', 'float64'],
check_variable_and_dtype(input, "input",
['float32', 'float64', 'int32', 'int64'],
'teacher_student_sigmoid_loss')
check_variable_and_dtype(label, "label", ['float32', 'float64'],
check_variable_and_dtype(label, "label",
['float32', 'float64', 'int32', 'int64'],
'teacher_student_sigmoid_loss')
helper = LayerHelper('teacher_student_sigmoid_loss', **locals())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册