# `Nx.Defn.Evaluator`
[🔗](https://github.com/elixir-nx/nx/blob/v0.13.1/nx/lib/nx/defn/evaluator.ex#L1)

The default implementation of a `Nx.Defn.Compiler`
that evaluates the expression tree against the
tensor backend.

## Options

The following options are specific to this compiler:

  * `:hooks` - a map of callbacks to override named `hook` side effects.
    This allows overriding named `hook`s at JIT time without recompiling the
    graph.

  * `:garbage_collect` - when true, garbage collects
    after evaluating each node

  * `:max_concurrency` - the number of partitions to
    start when running a `Nx.Serving` with this compiler

---

*Consult [api-reference.md](api-reference.md) for complete listing*
