moe_ops.cpp 184 B

1234567
  1. #include "moe_ops.h"
  2. #include <torch/extension.h>
  3. PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
  4. m.def("topk_softmax", &topk_softmax, "Apply top-k softmax to the gating outputs.");
  5. }