Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
9127cc3c
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
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看板
未验证
提交
9127cc3c
编写于
4月 26, 2023
作者:
D
denglianbin
提交者:
GitHub
4月 26, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【Hackathon No.48】为 Paddle meshgrid 算子实现 float16 数据类型支持 (#53284)
上级
1d549400
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
1 deletion
+11
-1
paddle/phi/kernels/gpu/meshgrid_grad_kernel.cu.cc
paddle/phi/kernels/gpu/meshgrid_grad_kernel.cu.cc
+1
-0
paddle/phi/kernels/gpu/meshgrid_kernel.cu.cc
paddle/phi/kernels/gpu/meshgrid_kernel.cu.cc
+1
-0
python/paddle/fluid/tests/unittests/test_meshgrid_op.py
python/paddle/fluid/tests/unittests/test_meshgrid_op.py
+8
-0
python/paddle/tensor/creation.py
python/paddle/tensor/creation.py
+1
-1
未找到文件。
paddle/phi/kernels/gpu/meshgrid_grad_kernel.cu.cc
浏览文件 @
9127cc3c
...
@@ -22,6 +22,7 @@ PD_REGISTER_KERNEL(meshgrid_grad,
...
@@ -22,6 +22,7 @@ PD_REGISTER_KERNEL(meshgrid_grad,
GPU
,
GPU
,
ALL_LAYOUT
,
ALL_LAYOUT
,
phi
::
MeshgridGradKernel
,
phi
::
MeshgridGradKernel
,
phi
::
dtype
::
float16
,
float
,
float
,
double
,
double
,
int
,
int
,
...
...
paddle/phi/kernels/gpu/meshgrid_kernel.cu.cc
浏览文件 @
9127cc3c
...
@@ -22,6 +22,7 @@ PD_REGISTER_KERNEL(meshgrid,
...
@@ -22,6 +22,7 @@ PD_REGISTER_KERNEL(meshgrid,
GPU
,
GPU
,
ALL_LAYOUT
,
ALL_LAYOUT
,
phi
::
MeshgridKernel
,
phi
::
MeshgridKernel
,
phi
::
dtype
::
float16
,
float
,
float
,
double
,
double
,
int
,
int
,
...
...
python/paddle/fluid/tests/unittests/test_meshgrid_op.py
浏览文件 @
9127cc3c
...
@@ -76,6 +76,14 @@ class TestMeshgridOp2(TestMeshgridOp):
...
@@ -76,6 +76,14 @@ class TestMeshgridOp2(TestMeshgridOp):
return
[
100
,
300
]
return
[
100
,
300
]
class
TestMeshgridOp2Fp16
(
TestMeshgridOp
):
def
get_x_shape
(
self
):
return
[
100
,
300
]
def
get_dtype
(
self
):
return
np
.
float16
class
TestMeshgridOp3
(
unittest
.
TestCase
):
class
TestMeshgridOp3
(
unittest
.
TestCase
):
def
test_api
(
self
):
def
test_api
(
self
):
x
=
paddle
.
static
.
data
(
shape
=
[
100
],
dtype
=
'int32'
,
name
=
'x'
)
x
=
paddle
.
static
.
data
(
shape
=
[
100
],
dtype
=
'int32'
,
name
=
'x'
)
...
...
python/paddle/tensor/creation.py
浏览文件 @
9127cc3c
...
@@ -1512,7 +1512,7 @@ def meshgrid(*args, **kwargs):
...
@@ -1512,7 +1512,7 @@ def meshgrid(*args, **kwargs):
Args:
Args:
*args(Tensor|list of Tensor) : tensors (tuple(list) of tensor): the shapes of input k tensors are (N1,),
*args(Tensor|list of Tensor) : tensors (tuple(list) of tensor): the shapes of input k tensors are (N1,),
(N2,),..., (Nk,). Support data types: ``float64``, ``float32``, ``int32``, ``int64``.
(N2,),..., (Nk,). Support data types: ``float64``, ``float
16``, ``float
32``, ``int32``, ``int64``.
**kwargs (optional): Currently, only accept name in **kwargs
**kwargs (optional): Currently, only accept name in **kwargs
The default value is None. Normally there is no need for
The default value is None. Normally there is no need for
user to set this property. For more information, please refer to :ref:`api_guide_Name`.
user to set this property. For more information, please refer to :ref:`api_guide_Name`.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录