Refactor + ReduceMean batched
Validate Operations / validate-operations (push) Has been cancelled

This commit is contained in:
ilgeco
2026-05-29 15:57:13 +02:00
parent 832bd7f1f7
commit 819d8af0f7
27 changed files with 929 additions and 568 deletions
@@ -619,7 +619,7 @@ BlockArgument appendInput(MaterializerState& state, MaterializedClass& materiali
}
Value createIndexConstant(MaterializerState& state, Operation* anchor, int64_t value) {
return getOrCreateHostIndexConstant(anchor, value, state.constantFolder);
return getOrCreateHostIndexConstant(state.constantFolder, anchor, value);
}
// -----------------------------------------------------------------------------
@@ -939,7 +939,7 @@ Value createIndexTensorConstant(MaterializerState& state, Operation* anchor, Arr
auto type = RankedTensorType::get({static_cast<int64_t>(values.size())}, state.rewriter.getIndexType());
auto attr = DenseIntElementsAttr::get(type, elements);
return getOrCreateHostConstant(anchor, attr, type, state.constantFolder);
return getOrCreateHostConstant(state.constantFolder, anchor, attr, type);
}
bool allEqual(ArrayRef<int64_t> values) {