Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
1e981d0d
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
1e981d0d
编写于
9月 07, 2022
作者:
H
houj04
提交者:
GitHub
9月 07, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[XPU] update xdnn to 0907. (#45777)
* [XPU] update xdnn to 0906. test=kunlun * [XPU] update xdnn to 0907. test=kunlun
上级
9b70c556
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
13 addition
and
10 deletion
+13
-10
cmake/external/xpu.cmake
cmake/external/xpu.cmake
+2
-2
paddle/phi/kernels/xpu/rnn_grad_kernel.cc
paddle/phi/kernels/xpu/rnn_grad_kernel.cc
+2
-2
paddle/phi/kernels/xpu/rnn_kernel.cc
paddle/phi/kernels/xpu/rnn_kernel.cc
+1
-1
paddle/phi/kernels/xpu/rnn_util.h
paddle/phi/kernels/xpu/rnn_util.h
+4
-4
python/paddle/fluid/tests/unittests/xpu/get_test_cover_info.py
...n/paddle/fluid/tests/unittests/xpu/get_test_cover_info.py
+4
-1
未找到文件。
cmake/external/xpu.cmake
浏览文件 @
1e981d0d
...
@@ -10,7 +10,7 @@ set(XPU_RT_LIB_NAME "libxpurt.so")
...
@@ -10,7 +10,7 @@ set(XPU_RT_LIB_NAME "libxpurt.so")
if
(
NOT DEFINED XPU_BASE_URL
)
if
(
NOT DEFINED XPU_BASE_URL
)
set
(
XPU_BASE_URL_WITHOUT_DATE
set
(
XPU_BASE_URL_WITHOUT_DATE
"https://baidu-kunlun-product.cdn.bcebos.com/KL-SDK/klsdk-dev"
)
"https://baidu-kunlun-product.cdn.bcebos.com/KL-SDK/klsdk-dev"
)
set
(
XPU_BASE_URL
"
${
XPU_BASE_URL_WITHOUT_DATE
}
/20220
831
"
)
set
(
XPU_BASE_URL
"
${
XPU_BASE_URL_WITHOUT_DATE
}
/20220
907
"
)
else
()
else
()
set
(
XPU_BASE_URL
"
${
XPU_BASE_URL
}
"
)
set
(
XPU_BASE_URL
"
${
XPU_BASE_URL
}
"
)
endif
()
endif
()
...
@@ -19,7 +19,7 @@ endif()
...
@@ -19,7 +19,7 @@ endif()
if
(
NOT DEFINED XPU_XDNN_BASE_URL
)
if
(
NOT DEFINED XPU_XDNN_BASE_URL
)
set
(
XPU_XDNN_BASE_URL_WITHOUT_DATE
set
(
XPU_XDNN_BASE_URL_WITHOUT_DATE
"https://klx-sdk-release-public.su.bcebos.com/xdnn/dev"
)
"https://klx-sdk-release-public.su.bcebos.com/xdnn/dev"
)
set
(
XPU_XDNN_BASE_URL
"
${
XPU_XDNN_BASE_URL_WITHOUT_DATE
}
/20220
831
"
)
set
(
XPU_XDNN_BASE_URL
"
${
XPU_XDNN_BASE_URL_WITHOUT_DATE
}
/20220
907
"
)
else
()
else
()
set
(
XPU_XDNN_BASE_URL
"
${
XPU_XDNN_BASE_URL
}
"
)
set
(
XPU_XDNN_BASE_URL
"
${
XPU_XDNN_BASE_URL
}
"
)
endif
()
endif
()
...
...
paddle/phi/kernels/xpu/rnn_grad_kernel.cc
浏览文件 @
1e981d0d
...
@@ -92,14 +92,14 @@ void RnnGradKernel(const Context& dev_ctx,
...
@@ -92,14 +92,14 @@ void RnnGradKernel(const Context& dev_ctx,
std
::
vector
<
std
::
vector
<
const
T
*>>
parameter_lists
;
std
::
vector
<
std
::
vector
<
const
T
*>>
parameter_lists
;
parameter_lists
.
resize
(
num_layers
);
parameter_lists
.
resize
(
num_layers
);
reset_parameter_v
ector
(
weight_list
,
num_layers
,
is_bidirec
,
&
parameter_lists
);
ResetParameterV
ector
(
weight_list
,
num_layers
,
is_bidirec
,
&
parameter_lists
);
for
(
unsigned
int
i
=
0
;
i
<
weight_grad_list
.
size
();
++
i
)
{
for
(
unsigned
int
i
=
0
;
i
<
weight_grad_list
.
size
();
++
i
)
{
dev_ctx
.
template
Alloc
<
T
>(
weight_grad_list
[
i
]);
dev_ctx
.
template
Alloc
<
T
>(
weight_grad_list
[
i
]);
}
}
std
::
vector
<
std
::
vector
<
T
*>>
parameter_lists_grad
;
std
::
vector
<
std
::
vector
<
T
*>>
parameter_lists_grad
;
parameter_lists_grad
.
resize
(
num_layers
);
parameter_lists_grad
.
resize
(
num_layers
);
reset_parameter_v
ector
(
ResetParameterV
ector
(
weight_grad_list
,
num_layers
,
is_bidirec
,
&
parameter_lists_grad
);
weight_grad_list
,
num_layers
,
is_bidirec
,
&
parameter_lists_grad
);
// allocate the memory and initization the x_grad
// allocate the memory and initization the x_grad
...
...
paddle/phi/kernels/xpu/rnn_kernel.cc
浏览文件 @
1e981d0d
...
@@ -89,7 +89,7 @@ void RnnKernel(const Context& dev_ctx,
...
@@ -89,7 +89,7 @@ void RnnKernel(const Context& dev_ctx,
// weightlist
// weightlist
std
::
vector
<
std
::
vector
<
const
T
*>>
parameter_lists
;
std
::
vector
<
std
::
vector
<
const
T
*>>
parameter_lists
;
parameter_lists
.
resize
(
num_layers
);
parameter_lists
.
resize
(
num_layers
);
reset_parameter_v
ector
(
weight_list
,
num_layers
,
is_bidirec
,
&
parameter_lists
);
ResetParameterV
ector
(
weight_list
,
num_layers
,
is_bidirec
,
&
parameter_lists
);
// init the output and allocate the memory
// init the output and allocate the memory
dev_ctx
.
template
Alloc
<
T
>(
out
);
dev_ctx
.
template
Alloc
<
T
>(
out
);
...
...
paddle/phi/kernels/xpu/rnn_util.h
浏览文件 @
1e981d0d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
namespace
phi
{
namespace
phi
{
template
<
typename
TensorType
,
typename
T
>
template
<
typename
TensorType
,
typename
T
>
void
reset_parameter_v
ector
(
const
std
::
vector
<
TensorType
>&
raw_params_vec
,
void
ResetParameterV
ector
(
const
std
::
vector
<
TensorType
>&
raw_params_vec
,
const
int
&
num_layers
,
const
int
&
num_layers
,
const
bool
&
is_bidirec
,
const
bool
&
is_bidirec
,
std
::
vector
<
std
::
vector
<
T
*>>*
params_vec
)
{
std
::
vector
<
std
::
vector
<
T
*>>*
params_vec
)
{
...
...
python/paddle/fluid/tests/unittests/xpu/get_test_cover_info.py
浏览文件 @
1e981d0d
...
@@ -91,7 +91,10 @@ xpu_test_op_type_white_list = [
...
@@ -91,7 +91,10 @@ xpu_test_op_type_white_list = [
"lamb_float16"
,
"lamb_float16"
,
"lars_momentum_float32"
,
"lars_momentum_float32"
,
"resnet_unit"
,
"resnet_unit"
,
"resnet_unit_grad"
"resnet_unit_grad"
,
"c_embedding_float32"
,
# unittests of collective ops do not using xpu testing framework
"c_sync_comm_stream_float32"
,
"c_sync_calc_stream_float32"
,
]
]
xpu_test_device_op_white_list
=
[]
xpu_test_device_op_white_list
=
[]
xpu_test_device_op_type_white_list
=
[]
xpu_test_device_op_type_white_list
=
[]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录