Merge pull request #9 from EddieCueto/maketests

Solved a issue with linux, still have to check linux if nvidia-smi or…
This commit is contained in:
Eduardo Cueto Mendoza 2020-07-05 16:58:50 -06:00 committed by GitHub
commit 545bf92042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -17,9 +17,11 @@ using Flux
rn = RNN(3,6)
#maxo = Maxout(()->Dense(35, 27), 4)
maxo = Maxout((12,12))
@test_throws Base.IOError GreenFlux.gpupowerdraw()
@test_throws Base.IOError GreenFlux.cpupowerdraw()
@test_throws Base.IOError GreenFlux.rampowerdraw()
if Sys.isapple()
@test_throws Base.IOError GreenFlux.gpupowerdraw()
@test_throws Base.IOError GreenFlux.cpupowerdraw()
@test_throws Base.IOError GreenFlux.rampowerdraw()
end
if Sys.islinux()
@test typeof(avgpowerdraw()) <: Float64
end