未验证 提交 0967506e 编写于 作者: Z zhangbo9674 提交者: GitHub

fix ci bug (#47583)

* fix ci bug

* test
上级 2dc3d40c
......@@ -40,6 +40,7 @@ void ActivationGradGPUImpl(const Context& dev_ctx,
d_out, errors::NotFound("The input DenseTensor dOut can not be nullptr"));
PADDLE_ENFORCE_NOT_NULL(
d_x, errors::NotFound("The output DenseTensor dX can not be nullptr"));
if (!out) {
out = d_out; // fake out
}
......
......@@ -51,6 +51,7 @@ void AddNKernel(const Context& dev_ctx,
ptrs,
reinterpret_cast<XPUType*>(out->data<T>()),
out->numel());
PADDLE_ENFORCE_XDNN_SUCCESS(r, "sum");
}
......
......@@ -341,7 +341,10 @@ class PRChecker(object):
else:
filterFiles.append(filename)
elif (
'/xpu/' or '/npu/' or '/mlu/' or '/ipu/' in filename.lower()
('/xpu/' in filename.lower())
or ('/npu/' in filename.lower())
or ('/mlu/' in filename.lower())
or ('/ipu/' in filename.lower())
):
filterFiles.append(filename)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册