Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
34069c46
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 2 年 前同步成功
通知
2325
Star
20933
Fork
5424
代码
文件
提交
分支
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看板
未验证
提交
34069c46
编写于
4月 04, 2023
作者:
Z
zhangyuqin1998
提交者:
GitHub
4月 04, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename_bilinear_tensor_product (#52375)
* rename_bilinear_tensor_product * fix
上级
a043d361
变更
14
显示空白变更内容
内联
并排
Showing
14 changed file
with
64 addition
and
81 deletion
+64
-81
paddle/fluid/operators/bilinear_tensor_product_op.cc
paddle/fluid/operators/bilinear_tensor_product_op.cc
+1
-1
paddle/phi/api/yaml/legacy_backward.yaml
paddle/phi/api/yaml/legacy_backward.yaml
+1
-1
paddle/phi/api/yaml/legacy_ops.yaml
paddle/phi/api/yaml/legacy_ops.yaml
+2
-2
paddle/phi/infermeta/multiary.cc
paddle/phi/infermeta/multiary.cc
+6
-6
paddle/phi/infermeta/multiary.h
paddle/phi/infermeta/multiary.h
+6
-6
paddle/phi/kernels/bilinear_grad_kernel.h
paddle/phi/kernels/bilinear_grad_kernel.h
+9
-9
paddle/phi/kernels/bilinear_kernel.h
paddle/phi/kernels/bilinear_kernel.h
+6
-6
paddle/phi/kernels/cpu/bilinear_grad_kernel.cc
paddle/phi/kernels/cpu/bilinear_grad_kernel.cc
+4
-8
paddle/phi/kernels/cpu/bilinear_kernel.cc
paddle/phi/kernels/cpu/bilinear_kernel.cc
+4
-8
paddle/phi/kernels/gpu/bilinear_grad_kernel.cu
paddle/phi/kernels/gpu/bilinear_grad_kernel.cu
+4
-8
paddle/phi/kernels/gpu/bilinear_kernel.cu
paddle/phi/kernels/gpu/bilinear_kernel.cu
+4
-8
paddle/phi/kernels/impl/bilinear_grad_kernel_impl.h
paddle/phi/kernels/impl/bilinear_grad_kernel_impl.h
+9
-9
paddle/phi/kernels/impl/bilinear_kernel_impl.h
paddle/phi/kernels/impl/bilinear_kernel_impl.h
+6
-6
paddle/phi/ops/compat/bilinear_tensor_product_sig.cc
paddle/phi/ops/compat/bilinear_tensor_product_sig.cc
+2
-3
未找到文件。
paddle/fluid/operators/bilinear_tensor_product_op.cc
浏览文件 @
34069c46
...
...
@@ -92,7 +92,7 @@ namespace ops = paddle::operators;
DECLARE_INFER_SHAPE_FUNCTOR
(
bilinear_tensor_product
,
BilinearTensorProductInferShapeFunctor
,
PD_INFER_META
(
phi
::
Bilinear
TensorProduct
InferMeta
));
PD_INFER_META
(
phi
::
BilinearInferMeta
));
DECLARE_INFER_SHAPE_FUNCTOR
(
bilinear_tensor_product_grad
,
BilinearTensorProductGradInferShapeFunctor
,
...
...
paddle/phi/api/yaml/legacy_backward.yaml
浏览文件 @
34069c46
...
...
@@ -152,7 +152,7 @@
infer_meta
:
func
:
BilinearTensorProductGradInferMeta
kernel
:
func
:
bilinear_
tensor_product_
grad
func
:
bilinear_grad
-
backward_op
:
cast_grad
forward
:
cast (Tensor x, DataType dtype) -> Tensor(out)
...
...
paddle/phi/api/yaml/legacy_ops.yaml
浏览文件 @
34069c46
...
...
@@ -227,9 +227,9 @@
args
:
(Tensor x, Tensor y, Tensor weight, Tensor bias)
output
:
Tensor
infer_meta
:
func
:
Bilinear
TensorProduct
InferMeta
func
:
BilinearInferMeta
kernel
:
func
:
bilinear
_tensor_product
func
:
bilinear
optional
:
bias
backward
:
bilinear_tensor_product_grad
...
...
paddle/phi/infermeta/multiary.cc
浏览文件 @
34069c46
...
...
@@ -695,7 +695,7 @@ void BatchNormInferInferMeta(const MetaTensor& x,
config
);
}
void
Bilinear
TensorProduct
InferMeta
(
const
MetaTensor
&
x
,
void
BilinearInferMeta
(
const
MetaTensor
&
x
,
const
MetaTensor
&
y
,
const
MetaTensor
&
weight
,
const
MetaTensor
&
bias
,
...
...
paddle/phi/infermeta/multiary.h
浏览文件 @
34069c46
...
...
@@ -198,7 +198,7 @@ void BatchNormInferInferMeta(const MetaTensor& x,
MetaTensor
*
variance_out
,
MetaConfig
config
=
MetaConfig
());
void
Bilinear
TensorProduct
InferMeta
(
const
MetaTensor
&
x
,
void
BilinearInferMeta
(
const
MetaTensor
&
x
,
const
MetaTensor
&
y
,
const
MetaTensor
&
weight
,
const
MetaTensor
&
bias
,
...
...
paddle/phi/kernels/bilinear_
tensor_product_
grad_kernel.h
→
paddle/phi/kernels/bilinear_grad_kernel.h
浏览文件 @
34069c46
...
...
@@ -19,7 +19,7 @@
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
Bilinear
TensorProduct
GradKernel
(
const
Context
&
dev_ctx
,
void
BilinearGradKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
x
,
const
DenseTensor
&
y
,
const
DenseTensor
&
weight
,
...
...
paddle/phi/kernels/bilinear_
tensor_product_
kernel.h
→
paddle/phi/kernels/bilinear_kernel.h
浏览文件 @
34069c46
...
...
@@ -20,7 +20,7 @@
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
Bilinear
TensorProduct
Kernel
(
const
Context
&
dev_ctx
,
void
BilinearKernel
(
const
Context
&
dev_ctx
,
const
DenseTensor
&
x
,
const
DenseTensor
&
y
,
const
DenseTensor
&
weight
,
...
...
paddle/phi/kernels/
gpu/bilinear_tensor_product_kernel.cu
→
paddle/phi/kernels/
cpu/bilinear_grad_kernel.cc
浏览文件 @
34069c46
...
...
@@ -12,14 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/phi/kernels/bilinear_
tensor_product
_kernel.h"
#include "paddle/phi/kernels/bilinear_
grad
_kernel.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/bilinear_
tensor_product
_kernel_impl.h"
#include "paddle/phi/kernels/impl/bilinear_
grad
_kernel_impl.h"
PD_REGISTER_KERNEL
(
bilinear_tensor_product
,
GPU
,
ALL_LAYOUT
,
phi
::
BilinearTensorProductKernel
,
float
,
double
)
{}
PD_REGISTER_KERNEL
(
bilinear_grad
,
CPU
,
ALL_LAYOUT
,
phi
::
BilinearGradKernel
,
float
,
double
)
{}
paddle/phi/kernels/cpu/bilinear_
tensor_product_
kernel.cc
→
paddle/phi/kernels/cpu/bilinear_kernel.cc
浏览文件 @
34069c46
...
...
@@ -12,14 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/phi/kernels/bilinear_
tensor_product_
kernel.h"
#include "paddle/phi/kernels/bilinear_kernel.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/bilinear_
tensor_product_
kernel_impl.h"
#include "paddle/phi/kernels/impl/bilinear_kernel_impl.h"
PD_REGISTER_KERNEL
(
bilinear_tensor_product
,
CPU
,
ALL_LAYOUT
,
phi
::
BilinearTensorProductKernel
,
float
,
double
)
{}
PD_REGISTER_KERNEL
(
bilinear
,
CPU
,
ALL_LAYOUT
,
phi
::
BilinearKernel
,
float
,
double
)
{}
paddle/phi/kernels/gpu/bilinear_
tensor_product_
grad_kernel.cu
→
paddle/phi/kernels/gpu/bilinear_grad_kernel.cu
浏览文件 @
34069c46
...
...
@@ -12,14 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/phi/kernels/bilinear_
tensor_product_
grad_kernel.h"
#include "paddle/phi/kernels/bilinear_grad_kernel.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/bilinear_
tensor_product_
grad_kernel_impl.h"
#include "paddle/phi/kernels/impl/bilinear_grad_kernel_impl.h"
PD_REGISTER_KERNEL
(
bilinear_tensor_product_grad
,
GPU
,
ALL_LAYOUT
,
phi
::
BilinearTensorProductGradKernel
,
float
,
double
)
{}
PD_REGISTER_KERNEL
(
bilinear_grad
,
GPU
,
ALL_LAYOUT
,
phi
::
BilinearGradKernel
,
float
,
double
)
{}
paddle/phi/kernels/
cpu/bilinear_tensor_product_grad_kernel.cc
→
paddle/phi/kernels/
gpu/bilinear_kernel.cu
浏览文件 @
34069c46
...
...
@@ -12,14 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/phi/kernels/bilinear_
tensor_product_grad_
kernel.h"
#include "paddle/phi/kernels/bilinear_kernel.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/bilinear_
tensor_product_grad_
kernel_impl.h"
#include "paddle/phi/kernels/impl/bilinear_kernel_impl.h"
PD_REGISTER_KERNEL
(
bilinear_tensor_product_grad
,
CPU
,
ALL_LAYOUT
,
phi
::
BilinearTensorProductGradKernel
,
float
,
double
)
{}
PD_REGISTER_KERNEL
(
bilinear
,
GPU
,
ALL_LAYOUT
,
phi
::
BilinearKernel
,
float
,
double
)
{}
paddle/phi/kernels/impl/bilinear_
tensor_product_
grad_kernel_impl.h
→
paddle/phi/kernels/impl/bilinear_grad_kernel_impl.h
浏览文件 @
34069c46
...
...
@@ -21,7 +21,7 @@
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
Bilinear
TensorProduct
GradKernel
(
const
Context
&
ctx
,
void
BilinearGradKernel
(
const
Context
&
ctx
,
const
DenseTensor
&
x
,
const
DenseTensor
&
y
,
const
DenseTensor
&
weight
,
...
...
paddle/phi/kernels/impl/bilinear_
tensor_product_
kernel_impl.h
→
paddle/phi/kernels/impl/bilinear_kernel_impl.h
浏览文件 @
34069c46
...
...
@@ -22,7 +22,7 @@
namespace
phi
{
template
<
typename
T
,
typename
Context
>
void
Bilinear
TensorProduct
Kernel
(
const
Context
&
ctx
,
void
BilinearKernel
(
const
Context
&
ctx
,
const
DenseTensor
&
x
,
const
DenseTensor
&
y
,
const
DenseTensor
&
weight
,
...
...
paddle/phi/ops/compat/bilinear_tensor_product_sig.cc
浏览文件 @
34069c46
...
...
@@ -18,13 +18,12 @@ namespace phi {
KernelSignature
BilinearTensorProductOpArgumentMapping
(
const
ArgumentMappingContext
&
ctx
)
{
return
KernelSignature
(
"bilinear_tensor_product"
,
{
"X"
,
"Y"
,
"Weight"
,
"Bias"
},
{},
{
"Out"
});
return
KernelSignature
(
"bilinear"
,
{
"X"
,
"Y"
,
"Weight"
,
"Bias"
},
{},
{
"Out"
});
}
KernelSignature
BilinearTensorProductGradOpArgumentMapping
(
const
ArgumentMappingContext
&
ctx
)
{
return
KernelSignature
(
"bilinear_
tensor_product_
grad"
,
return
KernelSignature
(
"bilinear_grad"
,
{
"X"
,
"Y"
,
"Weight"
,
"Out@GRAD"
},
{},
{
"X@GRAD"
,
"Y@GRAD"
,
"Weight@GRAD"
,
"Bias@GRAD"
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录