Skip to content

Commit

Permalink
Fixes the Funs module should import Nx.Defn in the intro Livebook. (
Browse files Browse the repository at this point in the history
  • Loading branch information
linjunpop authored Nov 18, 2023
1 parent bbb9172 commit 07447be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nx/guides/intro-to-nx.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,8 @@ Here's the Elixir equivalent of those functions:

```elixir
defmodule Funs do
import Nx.Defn

defn poly(x) do
3 * Nx.pow(x, 2) + 2 * x + 1
end
Expand Down

0 comments on commit 07447be

Please sign in to comment.