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

fix ci bug (#47583)

* fix ci bug

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