Skip to content

Commit

Permalink
test: add a test for pooling layers
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Dec 3, 2024
1 parent e3e2635 commit 6a7ebd2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/contrib/debug_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,20 @@ end
@test !any(isnan, gs.layer_3.bias)
end
end

@testitem "Debugging Tools: Issue #1068" setup=[SharedTestSetup] tags=[:misc] begin
model = Chain(
Conv((3, 3), 3 => 16, relu; stride=2),
MaxPool((2, 2)),
AdaptiveMaxPool((2, 2)),
GlobalMaxPool()
)

model_debug = Lux.Experimental.@debug_mode model
display(model_debug)

@test model_debug[1] isa Lux.Experimental.DebugLayer
@test model_debug[2] isa Lux.Experimental.DebugLayer
@test model_debug[3] isa Lux.Experimental.DebugLayer
@test model_debug[4] isa Lux.Experimental.DebugLayer
end

0 comments on commit 6a7ebd2

Please sign in to comment.