Skip to content

Commit

Permalink
Enable some ViT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darsnack committed Apr 4, 2022
1 parent 6d0d71c commit d51e3a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ end
GC.gc()

# ViT tests
# @testset verbose = true "ViTs" begin
# include("vit-based.jl")
# end
@testset verbose = true "ViTs" begin
include("vit-based.jl")
end
2 changes: 1 addition & 1 deletion test/vit-based.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Metalhead, Test
using Flux

@testset "ViT" begin
for mode in [:tiny, :small, :base, :large, :huge, :giant, :gigantic]
for mode in [:tiny, :small, :base, :large] #,:huge, :giant, :gigantic]
m = ViT(mode)
@test size(m(rand(Float32, 256, 256, 3, 2))) == (1000, 2)
@test_skip gradtest(m, rand(Float32, 256, 256, 3, 2))
Expand Down

0 comments on commit d51e3a4

Please sign in to comment.