Skip to content

Commit

Permalink
forgot cuda.functional for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khosravipasha committed Oct 19, 2021
1 parent 8168c18 commit 17e63c4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/structurelearner/rat_spn_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ using Test
using LogicCircuits
using ProbabilisticCircuits
using DataFrames



using CUDA

@testset "Random Region Graph tests" begin

Expand Down Expand Up @@ -65,8 +63,11 @@ end
@test typeof(circuit) <: ProbCircuit

estimate_parameters_em(circuit, data; pseudocount, use_gpu=false, update_per_batch = false)
estimate_parameters_em(circuit, data; pseudocount, use_gpu=true, update_per_batch = false)
estimate_parameters_em(circuit, data; pseudocount, use_gpu=false, update_per_batch = true)
estimate_parameters_em(circuit, data; pseudocount, use_gpu=true, update_per_batch = true)

if CUDA.functional()
estimate_parameters_em(circuit, data; pseudocount, use_gpu=true, update_per_batch = false)
estimate_parameters_em(circuit, data; pseudocount, use_gpu=true, update_per_batch = true)
end

end

0 comments on commit 17e63c4

Please sign in to comment.