Skip to content

Commit

Permalink
fix: stop reexporting Lux
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Aug 20, 2024
1 parent 3f0ace0 commit 7c8d9a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ LuxCore = "bb33d45b-7691-41d6-9220-0943567d0623"
LuxLib = "82251201-b29d-42c6-8e01-566dec8acb11"
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
WeightInitializers = "d49dbf32-c5c2-4618-8acc-27bb2598ef2d"

[compat]
Expand All @@ -26,6 +25,5 @@ LuxCore = "0.1.21"
LuxLib = "0.3.40"
NNlib = "0.9.21"
Random = "1.10"
Reexport = "1.2.2"
WeightInitializers = "1"
julia = "1.10"
3 changes: 0 additions & 3 deletions src/NeuralOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ using LuxCore: LuxCore, AbstractExplicitLayer, AbstractExplicitContainerLayer
using LuxLib: batched_matmul
using NNlib: NNlib, batched_adjoint
using Random: Random, AbstractRNG
using Reexport: @reexport

const CRC = ChainRulesCore

@reexport using Lux

include("utils.jl")
include("transform.jl")

Expand Down
2 changes: 1 addition & 1 deletion test/layers_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@testset "$(op) $(length(setup.m))D: permuted = $(setup.permuted)" for setup in setups,
op in opconv

p = Lux.__unwrap_val(setup.permuted)
p = Lux.Utils.unwrap_val(setup.permuted)
in_chs = ifelse(p, setup.x_size[end - 1], first(setup.x_size))
out_chs = ifelse(p, setup.y_size[end - 1], first(setup.y_size))
ch = 64 => out_chs
Expand Down
6 changes: 3 additions & 3 deletions test/qa_tests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@testitem "doctests: Quality Assurance" tags=[:qa] begin
using Documenter, NeuralOperators

DocMeta.setdocmeta!(
NeuralOperators, :DocTestSetup, :(using NeuralOperators, Random); recursive=true)
DocMeta.setdocmeta!(NeuralOperators, :DocTestSetup,
:(using Lux, NeuralOperators, Random); recursive=true)
doctest(NeuralOperators; manual=false)
end

Expand All @@ -14,7 +14,7 @@ end
end

@testitem "Explicit Imports: Quality Assurance" tags=[:qa] begin
using ExplicitImports
using ExplicitImports, Lux

# Skip our own packages
@test check_no_implicit_imports(NeuralOperators; skip=(Base, Core, Lux)) === nothing
Expand Down

0 comments on commit 7c8d9a1

Please sign in to comment.