Skip to content

Commit

Permalink
test cases: is_training/is_recording
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Dec 11, 2017
1 parent 5db7fbd commit 617b18f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unittest/autograd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ end # function test_record
function test_is_recording()
info("AutoGrad::is_recording")
mx.record() do
@test is_recording()
@test mx.is_recording()
end
end # function test_is_recording


function test_is_training()
info("AutoGrad::is_training")
mx.record() do
@test is_training()
@test mx.is_training()
end

mx.record(false) do
@test !is_training()
@test !mx.is_training()
end
end # function test_is_training

Expand Down

0 comments on commit 617b18f

Please sign in to comment.