moe_ops.cpp 190 Bytes
Newer Older
1
2
3
4
5
#include "moe_ops.h"

#include <torch/extension.h>

PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
6
7
  m.def("topk_softmax", &topk_softmax,
        "Apply topk softmax to the gating outputs.");
8
}