use unordered map for kwargs in export/import

This commit is contained in:
Awni Hannun
2025-04-18 18:07:39 -07:00
parent b529515eb1
commit 36b472dc6c
4 changed files with 30 additions and 30 deletions

View File

@@ -97,8 +97,7 @@ TEST_CASE("test export primitives with state") {
TEST_CASE("test export functions with kwargs") {
std::string file_path = get_temp_file("model.mlxfn");
auto fun =
[](const std::map<std::string, array>& kwargs) -> std::vector<array> {
auto fun = [](const Kwargs& kwargs) -> std::vector<array> {
return {kwargs.at("x") + kwargs.at("y")};
};