From 9d70412a9131f5db5efc2538d9c60bdb3067b380 Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Sun, 14 Jan 2024 15:41:56 -0800 Subject: [PATCH] fix --- mlx/compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/compile.cpp b/mlx/compile.cpp index 2e671f6f8..b6bd5cc1a 100644 --- a/mlx/compile.cpp +++ b/mlx/compile.cpp @@ -334,7 +334,7 @@ std::vector compile_replace( std::function(const std::vector&)> compile( const std::function(const std::vector&)>& fun, size_t fun_id) { - return [&fun, fun_id](const std::vector& inputs) { + return [fun, fun_id](const std::vector& inputs) { // Find a cache entry with the correct inputs auto& entry = compiler_cache().find(fun_id, inputs);