Skip to content

Commit

Permalink
[Bugfix] Fix Machete unittests failing with NotImplementedError (vl…
Browse files Browse the repository at this point in the history
…lm-project#9218)

Signed-off-by: Sumit Dubey <sumit.dubey2@ibm.com>
  • Loading branch information
LucasWilkinson authored and sumitd2 committed Nov 14, 2024
1 parent 5af3b76 commit 10a0e08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions csrc/quantization/machete/machete_pytorch.cu
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ torch::Tensor prepack_B(torch::Tensor const& B,
TORCH_LIBRARY_IMPL_EXPAND(TORCH_EXTENSION_NAME, CUDA, m) {
m.impl("machete_prepack_B", &prepack_B);
m.impl("machete_gemm", &gemm);
}

// use CatchAll since supported_schedules has no tensor arguments
TORCH_LIBRARY_IMPL(TORCH_EXTENSION_NAME, CatchAll, m) {
m.impl("machete_supported_schedules", &supported_schedules);
}

Expand Down

0 comments on commit 10a0e08

Please sign in to comment.