Skip to content

fix: strip :native_compiled before the evaluator fallback - #165

Merged
ausimian merged 1 commit into
feat/expr-compilerfrom
feat/expr-compiler-cm14-fix-drop-opts
Jun 6, 2026
Merged

fix: strip :native_compiled before the evaluator fallback#165
ausimian merged 1 commit into
feat/expr-compilerfrom
feat/expr-compiler-cm14-fix-drop-opts

Conversation

@ausimian

@ausimian ausimian commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Follow-up to CM14 (#163 review).

drop_native_opts/1 strips the Emily-only native knobs before the graceful native_fallback: :eval path delegates to Nx.Defn.Evaluator, but it missed :native_compiled (added in CM14). This drops it too, so the helper matches its own comment and no Emily-only option leaks into the evaluator's option list.

Harmless today (the evaluator ignores unknown opts) but latent if a future Nx validates its option list. One-line change; mix precommit green.

`drop_native_opts/1` removes the Emily-only native knobs before the
graceful `native_fallback: :eval` path delegates to `Nx.Defn.Evaluator`,
but it missed `:native_compiled` (added in CM14). Drop it too so the
function matches its own comment and no Emily-only option leaks into the
evaluator's option list.
@ausimian
ausimian merged commit bbdfc4d into feat/expr-compiler Jun 6, 2026
3 checks passed
@ausimian
ausimian deleted the feat/expr-compiler-cm14-fix-drop-opts branch June 6, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant