未验证 提交 566ccfef 编写于 作者: W Weilong Wu 提交者: GitHub

[Eager] Fix test_model.py under eager in windows-openblas ci (#42756)

* [Eager] Fix test_model.py under eager in windows-openblas ci

* Use || in this case

* recover _in_eager_mode_
上级 f9d5ae4e
......@@ -1045,7 +1045,7 @@ paddle::experimental::Scalar CastNumpy2Scalar(PyObject* obj,
} else if (type_name == "numpy.int64") {
int64_t value = CastPyArg2Long(obj, op_type, arg_pos);
return paddle::experimental::Scalar(value);
} else if (type_name == "numpy.int32") {
} else if (type_name == "numpy.int32" || type_name == "numpy.intc") {
int value = CastPyArg2Int(obj, op_type, arg_pos);
return paddle::experimental::Scalar(value);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册