"torchvision/transforms/_presets.py" did not exist on "5dc1e20b88f92dda862a7aab522bfdac2e6bd3b8"
moe_ops.cpp 182 Bytes
Newer Older
1
2
3
4
5
6
7
#include "moe_ops.h"

#include <torch/extension.h>

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