Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions paddle/fluid/operators/moe_op.cc

This file was deleted.

11 changes: 11 additions & 0 deletions paddle/phi/api/yaml/op_compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3938,6 +3938,17 @@
outputs :
out : Out

- op: moe
inputs:
x: X
gate: Gate
bmm0: Bmm0
bias0: Bias0
bmm1: Bmm1
bias1: Bias1
outputs:
out: Out

- op: nce
backward: nce_grad
inputs:
Expand Down
9 changes: 9 additions & 0 deletions paddle/phi/api/yaml/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3206,3 +3206,12 @@
optional : gt_score
intermediate : objectness_mask, gt_match_mask
backward : yolo_loss_grad

- op: moe
args: (Tensor x, Tensor gate, Tensor bmm0, Tensor bias0, Tensor bmm1, Tensor bias1,
str act_type = "gelu")
output: Tensor (out)
infer_meta:
func: MoeInferMeta
kernel:
func: moe