-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix broadcast error, add kernel sig, register e_grad, change unit test
- Loading branch information
Showing
4 changed files
with
95 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. */ | ||
|
||
#include "paddle/phi/core/compat/op_utils.h" | ||
|
||
namespace phi { | ||
|
||
KernelSignature GraphSendERecvOpArgumentMapping( | ||
const ArgumentMappingContext& ctx) { | ||
return KernelSignature("graph_send_e_recv", | ||
{"X", "E", "Src_index", "Dst_index"}, | ||
{"compute_type", "pool_type", "out_size"}, | ||
{"Out", "Dst_count"}); | ||
} | ||
|
||
KernelSignature GraphSendERecvGradOpArgumentMapping( | ||
const ArgumentMappingContext& ctx) { | ||
return KernelSignature( | ||
"graph_send_e_recv_grad", | ||
{"X", "E", "Src_index", "Dst_index", "Out", "Dst_count", "Out@GRAD"}, | ||
{"compute_type", "pool_type"}, | ||
{"X@GRAD", "E@GRAD"}); | ||
} | ||
|
||
} // namespace phi | ||
|
||
PD_REGISTER_ARG_MAPPING_FN(graph_send_e_recv, | ||
phi::GraphSendERecvOpArgumentMapping); | ||
|
||
PD_REGISTER_ARG_MAPPING_FN(graph_send_e_recv_grad, | ||
phi::GraphSendERecvGradOpArgumentMapping); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f961f9b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵️ CI failures summary
🔍 PR: #43174 Commit ID: f961f9b contains failed CI.
🔹 Failed: PR-CI-APPROVAL
Unknown Failed
🔹 Failed: PR-CI-Windows-Inference
Unknown Failed
🔹 Failed: PR-CI-NPU
Unknown Failed
🔹 Failed: PR-CI-ROCM-Compile
Unknown Failed
🔹 Failed: PR-CI-Windows-OPENBLAS
Unknown Failed