Skip to content

Commit

Permalink
Fixes the reshape example in intro Livebook (#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
linjunpop authored Nov 18, 2023
1 parent 8e5b343 commit bbb9172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nx/guides/intro-to-nx.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Nx.shape(tensor)
We can also create a new tensor with a new shape using `Nx.reshape/2`:

```elixir
Nx.reshape(tensor, {1, 9}, names: [:batches, :values])
Nx.reshape(tensor, {1, 4}, names: [:batches, :values])
```

This operation reuses all of the tensor data and simply
Expand Down

0 comments on commit bbb9172

Please sign in to comment.