Skip to content

Commit bbdfc4d

Browse files
authored
Merge pull request #165 from ausimian/feat/expr-compiler-cm14-fix-drop-opts
fix: strip :native_compiled before the evaluator fallback
2 parents e4267d1 + eaa74f0 commit bbdfc4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/emily/compiler.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ defmodule Emily.Compiler do
271271
# Strip the Emily-only native knobs before delegating to the Evaluator
272272
# — it ignores keys it doesn't consume, but handing it `native: true`
273273
# when we've decided *not* to compile natively would be misleading.
274-
defp drop_native_opts(opts), do: Keyword.drop(opts, [:native, :native_fallback])
274+
defp drop_native_opts(opts),
275+
do: Keyword.drop(opts, [:native, :native_fallback, :native_compiled])
275276

276277
defp native_ref(%T{data: %B{ref: r}}), do: r
277278
defp native_ref(%T{} = t), do: Nx.backend_transfer(t, B).data.ref

0 commit comments

Comments
 (0)