Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

ERROR: UndefVarError: is_extension_loaded not defined in LuxLib.Impl #179

Closed
KirillZubov opened this issue Oct 28, 2024 · 0 comments
Closed

Comments

@KirillZubov
Copy link

  chain = Chain(
        Dense(2 => 10, Lux.tanh_fast), Dense(10 => 10, Lux.tanh_fast), Dense(10 => 1))
    x = rand(2, 200, 40)
    θ, st = Lux.setup(Random.default_rng(), chain)
    b = chain(x, θ, st)[1]

ERROR: UndefVarError: `is_extension_loaded` not defined in `LuxLib.Impl`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] matmul_cpu_fallback!
    @ ~/.julia/packages/LuxLib/lNyvG/src/impl/matmul.jl:139 [inlined]
  [2] matmul_cpu!(C::Matrix{Float64}, ::Static.False, ::Static.False, A::Matrix{Float32}, B::Matrix{Float64})
    @ LuxLib.Impl ~/.julia/packages/LuxLib/lNyvG/src/impl/matmul.jl:121
  [3] matmul!
    @ ~/.julia/packages/LuxLib/lNyvG/src/impl/matmul.jl:90 [inlined]
  [4] fused_dense!
    @ ~/.julia/packages/LuxLib/lNyvG/src/impl/dense.jl:30 [inlined]
  [5] fused_dense
    @ ~/.julia/packages/LuxLib/lNyvG/src/impl/dense.jl:24 [inlined]
  [6] fused_dense
    @ ~/.julia/packages/LuxLib/lNyvG/src/impl/dense.jl:11 [inlined]
  [7] fused_dense_bias_activation
    @ ~/.julia/packages/LuxLib/lNyvG/src/api/dense.jl:35 [inlined]
  [8] (::Dense{…})(x::Array{…}, ps::@NamedTuple{}, st::@NamedTuple{})
    @ Lux ~/.julia/packages/Lux/atwzZ/src/layers/basic.jl:343
  [9] apply
    @ ~/.julia/packages/LuxCore/IBKvY/src/LuxCore.jl:155 [inlined]
 [10] macro expansion
    @ ~/.julia/packages/Lux/atwzZ/src/layers/containers.jl:0 [inlined]
 [11] applychain
    @ ~/.julia/packages/Lux/atwzZ/src/layers/containers.jl:482 [inlined]
 [12] (::Chain{…})(x::Array{…}, ps::@NamedTuple{}, st::@NamedTuple{})
    @ Lux ~/.julia/packages/Lux/atwzZ/src/layers/containers.jl:480
 [13] top-level scope
    @ REPL[532]:1
Some type information was truncated. Use `show(err)` to see complete types.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant