-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not compile stack/concatenate expressions
People may attempt to concatenate/stack thousands of entries, which ends up spending too much time in the compiler. Using the binary backend is simpler and faster. Here is a simple benchmark showcasing the issue: Nx.default_backend(EXLA.Backend) for(_ <- 1..10_000, do: Nx.broadcast(0, {1024})) |> Nx.stack(name: :articles)
- Loading branch information
Showing
1 changed file
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters