enable admm low-precision cpu (#2661)

This commit is contained in:
Awni Hannun
2025-10-10 09:50:54 -07:00
committed by GitHub
parent f37389d100
commit 380aeb58ae
2 changed files with 9 additions and 4 deletions

View File

@@ -131,10 +131,6 @@ void Matmul::eval_cpu(const std::vector<array>& inputs, array& out) {
}
void AddMM::eval_cpu(const std::vector<array>& inputs, array& out) {
if (out.dtype() != float32) {
throw std::runtime_error(
"[AddMM::eval_cpu] Currently only supports float32.");
}
if (out.size() == 0) {
out.set_data(allocator::malloc(out.nbytes()));
return;