Skip to content

Commit

Permalink
[Fluid] Move fused_softmax_mask_upper_triangle to phi (PaddlePaddle#5…
Browse files Browse the repository at this point in the history
  • Loading branch information
AndSonder committed Aug 14, 2023
1 parent f54078e commit 6e40fc1
Show file tree
Hide file tree
Showing 10 changed files with 759 additions and 660 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ 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/fluid/operators/fused_softmax_mask_upper_triangle_op.h"

#include "paddle/fluid/framework/op_registry.h"
#include "paddle/phi/core/generator.h"
Expand Down Expand Up @@ -102,10 +101,3 @@ REGISTER_OPERATOR(
ops::SoftmaxMaskFuseUpperTriangleGradOpMaker<paddle::imperative::OpBase>);
REGISTER_OPERATOR(fused_softmax_mask_upper_triangle_grad,
ops::SoftmaxMaskFuseUpperTriangleOpGrad);

PD_REGISTER_STRUCT_KERNEL(fused_softmax_mask_upper_triangle,
CPU,
ALL_LAYOUT,
ops::SoftmaxMaskFuseUpperTriangleCPUKernel,
float,
double) {}
Loading

0 comments on commit 6e40fc1

Please sign in to comment.