From 617b18f3c754a65cdedab1c1b38eb85a85710857 Mon Sep 17 00:00:00 2001 From: Iblis Lin Date: Sat, 9 Dec 2017 18:25:15 +0800 Subject: [PATCH] test cases: is_training/is_recording --- test/unittest/autograd.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unittest/autograd.jl b/test/unittest/autograd.jl index d56730475..58fc0557f 100644 --- a/test/unittest/autograd.jl +++ b/test/unittest/autograd.jl @@ -105,7 +105,7 @@ 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 @@ -113,11 +113,11 @@ 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