Skip to content

Commit

Permalink
[Bugfix] Fix Machete unittests failing with NotImplementedError (#9218
Browse files Browse the repository at this point in the history
)
  • Loading branch information
LucasWilkinson authored Oct 10, 2024
1 parent 83ea5c7 commit 18511ae
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 18511ae

Please sign in to comment.