Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error in file lib/axon_onnx/shared.ex #55

Open
TheEndIsNear opened this issue Mar 22, 2024 · 5 comments
Open

Compilation error in file lib/axon_onnx/shared.ex #55

TheEndIsNear opened this issue Mar 22, 2024 · 5 comments

Comments

@TheEndIsNear
Copy link

I am getting the following error when attempting to install axon_onnx in livebook.

== Compilation error in file lib/axon_onnx/shared.ex ==
** (CompileError) lib/axon_onnx/shared.ex:58: undefined function transform/2 (there is no such import)
(nx 0.7.1) lib/nx/defn/compiler.ex:832: Nx.Defn.Compiler.compile_error!/3
(nx 0.7.1) lib/nx/defn/compiler.ex:429: Nx.Defn.Compiler.normalize/2
(elixir 1.16.2) lib/enum.ex:1826: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(elixir 1.16.2) lib/enum.ex:1826: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(nx 0.7.1) lib/nx/defn/compiler.ex:422: Nx.Defn.Compiler.normalize/2
(elixir 1.16.2) lib/enum.ex:1826: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(elixir 1.16.2) lib/enum.ex:1826: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(nx 0.7.1) lib/nx/defn/compiler.ex:422: Nx.Defn.Compiler.normalize/2

The command that I am running in the setup.

Mix.install([
{:axon_onnx, "> 0.4"},
{:axon, "
> 0.5"},
{:nx, "> 0.5"},
{:exla, "
> 0.5"},
{:stb_image, "> 0.6"},
{:kino, "
> 0.8"},
])

I am running elixir 1.16.2 with OTP/26 with Livebook 0.12.1 on Ubuntu 20.04 in Windows Subsystem for Linux.

@TheEndIsNear TheEndIsNear changed the title == Compilation error in file lib/axon_onnx/shared.ex Compilation error in file lib/axon_onnx/shared.ex Mar 22, 2024
@josevalim
Copy link
Contributor

You can use main for now.

@TheEndIsNear
Copy link
Author

That fixed it thanks Jose!

@khari998
Copy link

Getting the same error

@Eiji7
Copy link

Eiji7 commented May 22, 2024

2 months without any update? Today someone asked about this issue on #Elixir Chat too.

@khari998
Copy link

2 months without any update? Today someone asked about this issue on #Elixir Chat too.

I switched to using Ortex instead. Even on the latest main branch from the repo I was having other issues.

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

No branches or pull requests

4 participants