caffe icon indicating copy to clipboard operation
caffe copied to clipboard

CommonTest.TestPhase unit test failure

Open vahidk opened this issue 12 years ago • 9 comments

I managed to successfully compile caffe on my computer. But one of the unit tests seem to fail. (all the other ones pass). Here's the error:

src/caffe/test/test_common.cpp:34: Failure Value of: Caffe::TRAIN Actual: 0 Expected: Caffe::phase() Which is: 1 [ FAILED ] CommonTest.TestPhase

What do you think has caused this error?

vahidk avatar Mar 27 '14 15:03 vahidk

Strange. We once saw this when unit tests weren't careful about initializing their mode and phase and depended on the order of test execution, but that was fixed.

Which version is this? master, dev, or ?

shelhamer avatar Mar 27 '14 16:03 shelhamer

I'm using the master branch.

vahidk avatar Mar 27 '14 16:03 vahidk

Hmm. I can't reproduce this.

Which test ran before CommonTest?

shelhamer avatar Mar 27 '14 18:03 shelhamer

Here's a complete log before the failed test:

build/src/caffe/test/test_all.testbin 0 Cuda number of devices: 1 Setting to use device 0 Current device id: 0 [==========] Running 222 tests from 56 test cases. [----------] Global test environment set-up. [----------] 5 tests from LRNLayerTest/0, where TypeParam = float [ RUN ] LRNLayerTest/0.TestSetup [ OK ] LRNLayerTest/0.TestSetup (272 ms) [ RUN ] LRNLayerTest/0.TestCPUForward [ OK ] LRNLayerTest/0.TestCPUForward (9 ms) [ RUN ] LRNLayerTest/0.TestGPUForward [ OK ] LRNLayerTest/0.TestGPUForward (10 ms) [ RUN ] LRNLayerTest/0.TestCPUGradient [ OK ] LRNLayerTest/0.TestCPUGradient (1381 ms) [ RUN ] LRNLayerTest/0.TestGPUGradient [ OK ] LRNLayerTest/0.TestGPUGradient (3495 ms) [----------] 5 tests from LRNLayerTest/0 (5167 ms total)

[----------] 5 tests from LRNLayerTest/1, where TypeParam = double [ RUN ] LRNLayerTest/1.TestSetup [ OK ] LRNLayerTest/1.TestSetup (0 ms) [ RUN ] LRNLayerTest/1.TestCPUForward [ OK ] LRNLayerTest/1.TestCPUForward (0 ms) [ RUN ] LRNLayerTest/1.TestGPUForward [ OK ] LRNLayerTest/1.TestGPUForward (0 ms) [ RUN ] LRNLayerTest/1.TestCPUGradient [ OK ] LRNLayerTest/1.TestCPUGradient (1381 ms) [ RUN ] LRNLayerTest/1.TestGPUGradient [ OK ] LRNLayerTest/1.TestGPUGradient (4280 ms) [----------] 5 tests from LRNLayerTest/1 (5661 ms total)

[----------] 3 tests from BlobSimpleTest/0, where TypeParam = float [ RUN ] BlobSimpleTest/0.TestInitialization [ OK ] BlobSimpleTest/0.TestInitialization (0 ms) [ RUN ] BlobSimpleTest/0.TestPointers [ OK ] BlobSimpleTest/0.TestPointers (0 ms) [ RUN ] BlobSimpleTest/0.TestReshape [ OK ] BlobSimpleTest/0.TestReshape (0 ms) [----------] 3 tests from BlobSimpleTest/0 (0 ms total)

[----------] 3 tests from BlobSimpleTest/1, where TypeParam = double [ RUN ] BlobSimpleTest/1.TestInitialization [ OK ] BlobSimpleTest/1.TestInitialization (0 ms) [ RUN ] BlobSimpleTest/1.TestPointers [ OK ] BlobSimpleTest/1.TestPointers (0 ms) [ RUN ] BlobSimpleTest/1.TestReshape [ OK ] BlobSimpleTest/1.TestReshape (0 ms) [----------] 3 tests from BlobSimpleTest/1 (0 ms total)

[----------] 1 test from ProtoTest [ RUN ] ProtoTest.TestSerialization Printing in binary format.

testdummy Printing in text format. name: "test" type: "dummy"

[ OK ] ProtoTest.TestSerialization (0 ms) [----------] 1 test from ProtoTest (0 ms total)

[----------] 1 test from MultinomialLogisticLossLayerTest/0, where TypeParam = float [ RUN ] MultinomialLogisticLossLayerTest/0.TestGradientCPU [ OK ] MultinomialLogisticLossLayerTest/0.TestGradientCPU (4 ms) [----------] 1 test from MultinomialLogisticLossLayerTest/0 (4 ms total)

[----------] 1 test from MultinomialLogisticLossLayerTest/1, where TypeParam = double [ RUN ] MultinomialLogisticLossLayerTest/1.TestGradientCPU [ OK ] MultinomialLogisticLossLayerTest/1.TestGradientCPU (3 ms) [----------] 1 test from MultinomialLogisticLossLayerTest/1 (3 ms total)

[----------] 4 tests from SyncedMemoryTest [ RUN ] SyncedMemoryTest.TestInitialization [ OK ] SyncedMemoryTest.TestInitialization (0 ms) [ RUN ] SyncedMemoryTest.TestAllocation [ OK ] SyncedMemoryTest.TestAllocation (0 ms) [ RUN ] SyncedMemoryTest.TestCPUWrite [ OK ] SyncedMemoryTest.TestCPUWrite (0 ms) [ RUN ] SyncedMemoryTest.TestGPUWrite [ OK ] SyncedMemoryTest.TestGPUWrite (0 ms) [----------] 4 tests from SyncedMemoryTest (0 ms total)

[----------] 5 tests from PoolingLayerTest/0, where TypeParam = float [ RUN ] PoolingLayerTest/0.TestSetup [ OK ] PoolingLayerTest/0.TestSetup (0 ms) [ RUN ] PoolingLayerTest/0.TestCPUGradientMax [ OK ] PoolingLayerTest/0.TestCPUGradientMax (387 ms) [ RUN ] PoolingLayerTest/0.TestGPUGradientMax [ OK ] PoolingLayerTest/0.TestGPUGradientMax (1103 ms) [ RUN ] PoolingLayerTest/0.TestCPUGradientAve [ OK ] PoolingLayerTest/0.TestCPUGradientAve (393 ms) [ RUN ] PoolingLayerTest/0.TestGPUGradientAve [ OK ] PoolingLayerTest/0.TestGPUGradientAve (1143 ms) [----------] 5 tests from PoolingLayerTest/0 (3026 ms total)

[----------] 5 tests from PoolingLayerTest/1, where TypeParam = double [ RUN ] PoolingLayerTest/1.TestSetup [ OK ] PoolingLayerTest/1.TestSetup (0 ms) [ RUN ] PoolingLayerTest/1.TestCPUGradientMax [ OK ] PoolingLayerTest/1.TestCPUGradientMax (387 ms) [ RUN ] PoolingLayerTest/1.TestGPUGradientMax [ OK ] PoolingLayerTest/1.TestGPUGradientMax (1176 ms) [ RUN ] PoolingLayerTest/1.TestCPUGradientAve [ OK ] PoolingLayerTest/1.TestCPUGradientAve (379 ms) [ RUN ] PoolingLayerTest/1.TestGPUGradientAve [ OK ] PoolingLayerTest/1.TestGPUGradientAve (1208 ms) [----------] 5 tests from PoolingLayerTest/1 (3150 ms total)

[----------] 2 tests from GemmTest/0, where TypeParam = float [ RUN ] GemmTest/0.TestGemm [ OK ] GemmTest/0.TestGemm (0 ms) [ RUN ] GemmTest/0.TestGemv [ OK ] GemmTest/0.TestGemv (0 ms) [----------] 2 tests from GemmTest/0 (0 ms total)

[----------] 2 tests from GemmTest/1, where TypeParam = double [ RUN ] GemmTest/1.TestGemm [ OK ] GemmTest/1.TestGemm (1 ms) [ RUN ] GemmTest/1.TestGemv [ OK ] GemmTest/1.TestGemv (0 ms) [----------] 2 tests from GemmTest/1 (1 ms total)

[----------] 1 test from ConstantFillerTest/0, where TypeParam = float [ RUN ] ConstantFillerTest/0.TestFill [ OK ] ConstantFillerTest/0.TestFill (0 ms) [----------] 1 test from ConstantFillerTest/0 (0 ms total)

[----------] 1 test from ConstantFillerTest/1, where TypeParam = double [ RUN ] ConstantFillerTest/1.TestFill [ OK ] ConstantFillerTest/1.TestFill (0 ms) [----------] 1 test from ConstantFillerTest/1 (0 ms total)

[----------] 1 test from UniformFillerTest/0, where TypeParam = float [ RUN ] UniformFillerTest/0.TestFill [ OK ] UniformFillerTest/0.TestFill (0 ms) [----------] 1 test from UniformFillerTest/0 (0 ms total)

[----------] 1 test from UniformFillerTest/1, where TypeParam = double [ RUN ] UniformFillerTest/1.TestFill [ OK ] UniformFillerTest/1.TestFill (0 ms) [----------] 1 test from UniformFillerTest/1 (0 ms total)

[----------] 1 test from PositiveUnitballFillerTest/0, where TypeParam = float [ RUN ] PositiveUnitballFillerTest/0.TestFill [ OK ] PositiveUnitballFillerTest/0.TestFill (0 ms) [----------] 1 test from PositiveUnitballFillerTest/0 (0 ms total)

[----------] 1 test from PositiveUnitballFillerTest/1, where TypeParam = double [ RUN ] PositiveUnitballFillerTest/1.TestFill [ OK ] PositiveUnitballFillerTest/1.TestFill (0 ms) [----------] 1 test from PositiveUnitballFillerTest/1 (0 ms total)

[----------] 1 test from GaussianFillerTest/0, where TypeParam = float [ RUN ] GaussianFillerTest/0.TestFill [ OK ] GaussianFillerTest/0.TestFill (0 ms) [----------] 1 test from GaussianFillerTest/0 (0 ms total)

[----------] 1 test from GaussianFillerTest/1, where TypeParam = double [ RUN ] GaussianFillerTest/1.TestFill [ OK ] GaussianFillerTest/1.TestFill (0 ms) [----------] 1 test from GaussianFillerTest/1 (0 ms total)

[----------] 7 tests from ConvolutionLayerTest/0, where TypeParam = float [ RUN ] ConvolutionLayerTest/0.TestSetup [ OK ] ConvolutionLayerTest/0.TestSetup (0 ms) [ RUN ] ConvolutionLayerTest/0.TestSimpleConvolution [ OK ] ConvolutionLayerTest/0.TestSimpleConvolution (0 ms) [ RUN ] ConvolutionLayerTest/0.TestSimpleConvolutionGroup [ OK ] ConvolutionLayerTest/0.TestSimpleConvolutionGroup (1 ms) [ RUN ] ConvolutionLayerTest/0.TestCPUGradient [ OK ] ConvolutionLayerTest/0.TestCPUGradient (311 ms) [ RUN ] ConvolutionLayerTest/0.TestCPUGradientGroup [ OK ] ConvolutionLayerTest/0.TestCPUGradientGroup (411 ms) [ RUN ] ConvolutionLayerTest/0.TestGPUGradient [ OK ] ConvolutionLayerTest/0.TestGPUGradient (1865 ms) [ RUN ] ConvolutionLayerTest/0.TestGPUGradientGroup [ OK ] ConvolutionLayerTest/0.TestGPUGradientGroup (3418 ms) [----------] 7 tests from ConvolutionLayerTest/0 (6006 ms total)

[----------] 7 tests from ConvolutionLayerTest/1, where TypeParam = double [ RUN ] ConvolutionLayerTest/1.TestSetup [ OK ] ConvolutionLayerTest/1.TestSetup (0 ms) [ RUN ] ConvolutionLayerTest/1.TestSimpleConvolution [ OK ] ConvolutionLayerTest/1.TestSimpleConvolution (0 ms) [ RUN ] ConvolutionLayerTest/1.TestSimpleConvolutionGroup [ OK ] ConvolutionLayerTest/1.TestSimpleConvolutionGroup (1 ms) [ RUN ] ConvolutionLayerTest/1.TestCPUGradient [ OK ] ConvolutionLayerTest/1.TestCPUGradient (313 ms) [ RUN ] ConvolutionLayerTest/1.TestCPUGradientGroup [ OK ] ConvolutionLayerTest/1.TestCPUGradientGroup (392 ms) [ RUN ] ConvolutionLayerTest/1.TestGPUGradient [ OK ] ConvolutionLayerTest/1.TestGPUGradient (2919 ms) [ RUN ] ConvolutionLayerTest/1.TestGPUGradientGroup [ OK ] ConvolutionLayerTest/1.TestGPUGradientGroup (5873 ms) [----------] 7 tests from ConvolutionLayerTest/1 (9498 ms total)

[----------] 5 tests from Im2colLayerTest/0, where TypeParam = float [ RUN ] Im2colLayerTest/0.TestSetup [ OK ] Im2colLayerTest/0.TestSetup (0 ms) [ RUN ] Im2colLayerTest/0.TestCPU [ OK ] Im2colLayerTest/0.TestCPU (0 ms) [ RUN ] Im2colLayerTest/0.TestGPU [ OK ] Im2colLayerTest/0.TestGPU (0 ms) [ RUN ] Im2colLayerTest/0.TestCPUGradient [ OK ] Im2colLayerTest/0.TestCPUGradient (2386 ms) [ RUN ] Im2colLayerTest/0.TestGPUGradient [ OK ] Im2colLayerTest/0.TestGPUGradient (7992 ms) [----------] 5 tests from Im2colLayerTest/0 (10378 ms total)

[----------] 5 tests from Im2colLayerTest/1, where TypeParam = double [ RUN ] Im2colLayerTest/1.TestSetup [ OK ] Im2colLayerTest/1.TestSetup (0 ms) [ RUN ] Im2colLayerTest/1.TestCPU [ OK ] Im2colLayerTest/1.TestCPU (0 ms) [ RUN ] Im2colLayerTest/1.TestGPU [ OK ] Im2colLayerTest/1.TestGPU (0 ms) [ RUN ] Im2colLayerTest/1.TestCPUGradient [ OK ] Im2colLayerTest/1.TestCPUGradient (2402 ms) [ RUN ] Im2colLayerTest/1.TestGPUGradient [ OK ] Im2colLayerTest/1.TestGPUGradient (8105 ms) [----------] 5 tests from Im2colLayerTest/1 (10507 ms total)

[----------] 1 test from PlatformTest [ RUN ] PlatformTest.TestInitialization Major revision number: 3 Minor revision number: 5 Name: GeForce GTX 780 Total global memory: 3220897792 Total shared memory per block: 49152 Total registers per block: 65536 Warp size: 32 Maximum memory pitch: 2147483647 Maximum threads per block: 1024 Maximum dimension 0 of block: 1024 Maximum dimension 1 of block: 1024 Maximum dimension 2 of block: 64 Maximum dimension 0 of grid: 2147483647 Maximum dimension 1 of grid: 65535 Maximum dimension 2 of grid: 65535 Clock rate: 941000 Total constant memory: 65536 Texture alignment: 512 Concurrent copy and execution: Yes Number of multiprocessors: 12 Kernel execution timeout: No [ OK ] PlatformTest.TestInitialization (1 ms) [----------] 1 test from PlatformTest (1 ms total)

[----------] 18 tests from NeuronLayerTest/0, where TypeParam = float [ RUN ] NeuronLayerTest/0.TestReLUCPU [ OK ] NeuronLayerTest/0.TestReLUCPU (0 ms) [ RUN ] NeuronLayerTest/0.TestReLUGradientCPU [ OK ] NeuronLayerTest/0.TestReLUGradientCPU (825 ms) [ RUN ] NeuronLayerTest/0.TestReLUGPU [ OK ] NeuronLayerTest/0.TestReLUGPU (0 ms) [ RUN ] NeuronLayerTest/0.TestReLUGradientGPU [ OK ] NeuronLayerTest/0.TestReLUGradientGPU (2231 ms) [ RUN ] NeuronLayerTest/0.TestSigmoidCPU [ OK ] NeuronLayerTest/0.TestSigmoidCPU (0 ms) [ RUN ] NeuronLayerTest/0.TestSigmoidGradientCPU [ OK ] NeuronLayerTest/0.TestSigmoidGradientCPU (1018 ms) [ RUN ] NeuronLayerTest/0.TestSigmoidGPU [ OK ] NeuronLayerTest/0.TestSigmoidGPU (0 ms) [ RUN ] NeuronLayerTest/0.TestSigmoidGradientGPU [ OK ] NeuronLayerTest/0.TestSigmoidGradientGPU (2326 ms) [ RUN ] NeuronLayerTest/0.TestDropoutCPU [ OK ] NeuronLayerTest/0.TestDropoutCPU (0 ms) [ RUN ] NeuronLayerTest/0.TestDropoutGradientCPU [ OK ] NeuronLayerTest/0.TestDropoutGradientCPU (867 ms) [ RUN ] NeuronLayerTest/0.TestDropoutCPUTestPhase [ OK ] NeuronLayerTest/0.TestDropoutCPUTestPhase (0 ms) [ RUN ] NeuronLayerTest/0.TestDropoutGPU [ OK ] NeuronLayerTest/0.TestDropoutGPU (9 ms) [ RUN ] NeuronLayerTest/0.TestDropoutGradientGPU [ OK ] NeuronLayerTest/0.TestDropoutGradientGPU (2682 ms) [ RUN ] NeuronLayerTest/0.TestDropoutGPUTestPhase [ OK ] NeuronLayerTest/0.TestDropoutGPUTestPhase (0 ms) [ RUN ] NeuronLayerTest/0.TestBNLLCPU [ OK ] NeuronLayerTest/0.TestBNLLCPU (0 ms) [ RUN ] NeuronLayerTest/0.TestBNLLGradientCPU [ OK ] NeuronLayerTest/0.TestBNLLGradientCPU (1193 ms) [ RUN ] NeuronLayerTest/0.TestBNLLGPU [ OK ] NeuronLayerTest/0.TestBNLLGPU (0 ms) [ RUN ] NeuronLayerTest/0.TestBNLLGradientGPU [ OK ] NeuronLayerTest/0.TestBNLLGradientGPU (2425 ms) [----------] 18 tests from NeuronLayerTest/0 (13577 ms total)

[----------] 18 tests from NeuronLayerTest/1, where TypeParam = double [ RUN ] NeuronLayerTest/1.TestReLUCPU [ OK ] NeuronLayerTest/1.TestReLUCPU (0 ms) [ RUN ] NeuronLayerTest/1.TestReLUGradientCPU [ OK ] NeuronLayerTest/1.TestReLUGradientCPU (826 ms) [ RUN ] NeuronLayerTest/1.TestReLUGPU [ OK ] NeuronLayerTest/1.TestReLUGPU (0 ms) [ RUN ] NeuronLayerTest/1.TestReLUGradientGPU [ OK ] NeuronLayerTest/1.TestReLUGradientGPU (2251 ms) [ RUN ] NeuronLayerTest/1.TestSigmoidCPU [ OK ] NeuronLayerTest/1.TestSigmoidCPU (0 ms) [ RUN ] NeuronLayerTest/1.TestSigmoidGradientCPU [ OK ] NeuronLayerTest/1.TestSigmoidGradientCPU (994 ms) [ RUN ] NeuronLayerTest/1.TestSigmoidGPU [ OK ] NeuronLayerTest/1.TestSigmoidGPU (0 ms) [ RUN ] NeuronLayerTest/1.TestSigmoidGradientGPU [ OK ] NeuronLayerTest/1.TestSigmoidGradientGPU (2330 ms) [ RUN ] NeuronLayerTest/1.TestDropoutCPU [ OK ] NeuronLayerTest/1.TestDropoutCPU (0 ms) [ RUN ] NeuronLayerTest/1.TestDropoutGradientCPU [ OK ] NeuronLayerTest/1.TestDropoutGradientCPU (883 ms) [ RUN ] NeuronLayerTest/1.TestDropoutCPUTestPhase [ OK ] NeuronLayerTest/1.TestDropoutCPUTestPhase (0 ms) [ RUN ] NeuronLayerTest/1.TestDropoutGPU [ OK ] NeuronLayerTest/1.TestDropoutGPU (7 ms) [ RUN ] NeuronLayerTest/1.TestDropoutGradientGPU [ OK ] NeuronLayerTest/1.TestDropoutGradientGPU (2658 ms) [ RUN ] NeuronLayerTest/1.TestDropoutGPUTestPhase [ OK ] NeuronLayerTest/1.TestDropoutGPUTestPhase (0 ms) [ RUN ] NeuronLayerTest/1.TestBNLLCPU [ OK ] NeuronLayerTest/1.TestBNLLCPU (0 ms) [ RUN ] NeuronLayerTest/1.TestBNLLGradientCPU [ OK ] NeuronLayerTest/1.TestBNLLGradientCPU (1173 ms) [ RUN ] NeuronLayerTest/1.TestBNLLGPU [ OK ] NeuronLayerTest/1.TestBNLLGPU (0 ms) [ RUN ] NeuronLayerTest/1.TestBNLLGradientGPU [ OK ] NeuronLayerTest/1.TestBNLLGradientGPU (2441 ms) [----------] 18 tests from NeuronLayerTest/1 (13563 ms total)

[----------] 1 test from EuclideanLossLayerTest/0, where TypeParam = float [ RUN ] EuclideanLossLayerTest/0.TestGradientCPU [ OK ] EuclideanLossLayerTest/0.TestGradientCPU (3 ms) [----------] 1 test from EuclideanLossLayerTest/0 (3 ms total)

[----------] 1 test from EuclideanLossLayerTest/1, where TypeParam = double [ RUN ] EuclideanLossLayerTest/1.TestGradientCPU [ OK ] EuclideanLossLayerTest/1.TestGradientCPU (3 ms) [----------] 1 test from EuclideanLossLayerTest/1 (3 ms total)

[----------] 1 test from DataLayerTest/0, where TypeParam = float [ RUN ] DataLayerTest/0.TestRead [ OK ] DataLayerTest/0.TestRead (193 ms) [----------] 1 test from DataLayerTest/0 (193 ms total)

[----------] 1 test from DataLayerTest/1, where TypeParam = double [ RUN ] DataLayerTest/1.TestRead [ OK ] DataLayerTest/1.TestRead (195 ms) [----------] 1 test from DataLayerTest/1 (195 ms total)

[----------] 1 test from HDF5DataLayerTest/0, where TypeParam = float [ RUN ] HDF5DataLayerTest/0.TestRead [ OK ] HDF5DataLayerTest/0.TestRead (12 ms) [----------] 1 test from HDF5DataLayerTest/0 (12 ms total)

[----------] 1 test from HDF5DataLayerTest/1, where TypeParam = double [ RUN ] HDF5DataLayerTest/1.TestRead [ OK ] HDF5DataLayerTest/1.TestRead (6 ms) [----------] 1 test from HDF5DataLayerTest/1 (6 ms total)

[----------] 4 tests from TanHLayerTest/0, where TypeParam = float [ RUN ] TanHLayerTest/0.TestForwardCPU [ OK ] TanHLayerTest/0.TestForwardCPU (0 ms) [ RUN ] TanHLayerTest/0.TestGradientCPU [ OK ] TanHLayerTest/0.TestGradientCPU (28 ms) [ RUN ] TanHLayerTest/0.TestForwardGPU [ OK ] TanHLayerTest/0.TestForwardGPU (0 ms) [ RUN ] TanHLayerTest/0.TestGradientGPU [ OK ] TanHLayerTest/0.TestGradientGPU (64 ms) [----------] 4 tests from TanHLayerTest/0 (92 ms total)

[----------] 4 tests from TanHLayerTest/1, where TypeParam = double [ RUN ] TanHLayerTest/1.TestForwardCPU [ OK ] TanHLayerTest/1.TestForwardCPU (0 ms) [ RUN ] TanHLayerTest/1.TestGradientCPU [ OK ] TanHLayerTest/1.TestGradientCPU (23 ms) [ RUN ] TanHLayerTest/1.TestForwardGPU [ OK ] TanHLayerTest/1.TestForwardGPU (0 ms) [ RUN ] TanHLayerTest/1.TestGradientGPU [ OK ] TanHLayerTest/1.TestGradientGPU (65 ms) [----------] 4 tests from TanHLayerTest/1 (88 ms total)

[----------] 2 tests from SoftmaxLayerTest/0, where TypeParam = float [ RUN ] SoftmaxLayerTest/0.TestForwardCPU [ OK ] SoftmaxLayerTest/0.TestForwardCPU (0 ms) [ RUN ] SoftmaxLayerTest/0.TestGradientCPU [ OK ] SoftmaxLayerTest/0.TestGradientCPU (26 ms) [----------] 2 tests from SoftmaxLayerTest/0 (26 ms total)

[----------] 2 tests from SoftmaxLayerTest/1, where TypeParam = double [ RUN ] SoftmaxLayerTest/1.TestForwardCPU [ OK ] SoftmaxLayerTest/1.TestForwardCPU (0 ms) [ RUN ] SoftmaxLayerTest/1.TestGradientCPU [ OK ] SoftmaxLayerTest/1.TestGradientCPU (27 ms) [----------] 2 tests from SoftmaxLayerTest/1 (27 ms total)

[----------] 5 tests from FlattenLayerTest/0, where TypeParam = float [ RUN ] FlattenLayerTest/0.TestSetup [ OK ] FlattenLayerTest/0.TestSetup (0 ms) [ RUN ] FlattenLayerTest/0.TestCPU [ OK ] FlattenLayerTest/0.TestCPU (0 ms) [ RUN ] FlattenLayerTest/0.TestGPU [ OK ] FlattenLayerTest/0.TestGPU (0 ms) [ RUN ] FlattenLayerTest/0.TestCPUGradient [ OK ] FlattenLayerTest/0.TestCPUGradient (1876 ms) [ RUN ] FlattenLayerTest/0.TestGPUGradient [ OK ] FlattenLayerTest/0.TestGPUGradient (5146 ms) [----------] 5 tests from FlattenLayerTest/0 (7022 ms total)

[----------] 5 tests from FlattenLayerTest/1, where TypeParam = double [ RUN ] FlattenLayerTest/1.TestSetup [ OK ] FlattenLayerTest/1.TestSetup (0 ms) [ RUN ] FlattenLayerTest/1.TestCPU [ OK ] FlattenLayerTest/1.TestCPU (0 ms) [ RUN ] FlattenLayerTest/1.TestGPU [ OK ] FlattenLayerTest/1.TestGPU (0 ms) [ RUN ] FlattenLayerTest/1.TestCPUGradient [ OK ] FlattenLayerTest/1.TestCPUGradient (1904 ms) [ RUN ] FlattenLayerTest/1.TestGPUGradient [ OK ] FlattenLayerTest/1.TestGPUGradient (5248 ms) [----------] 5 tests from FlattenLayerTest/1 (7152 ms total)

[----------] 10 tests from BenchmarkTest [ RUN ] BenchmarkTest.TestTimerConstructorCPU [ OK ] BenchmarkTest.TestTimerConstructorCPU (0 ms) [ RUN ] BenchmarkTest.TestTimerConstructorGPU [ OK ] BenchmarkTest.TestTimerConstructorGPU (0 ms) [ RUN ] BenchmarkTest.TestTimerStartCPU [ OK ] BenchmarkTest.TestTimerStartCPU (0 ms) [ RUN ] BenchmarkTest.TestTimerStartGPU [ OK ] BenchmarkTest.TestTimerStartGPU (0 ms) [ RUN ] BenchmarkTest.TestTimerStopCPU [ OK ] BenchmarkTest.TestTimerStopCPU (0 ms) [ RUN ] BenchmarkTest.TestTimerStopGPU [ OK ] BenchmarkTest.TestTimerStopGPU (0 ms) [ RUN ] BenchmarkTest.TestTimerMilliSecondsCPU [ OK ] BenchmarkTest.TestTimerMilliSecondsCPU (300 ms) [ RUN ] BenchmarkTest.TestTimerMilliSecondsGPU [ OK ] BenchmarkTest.TestTimerMilliSecondsGPU (300 ms) [ RUN ] BenchmarkTest.TestTimerSecondsCPU [ OK ] BenchmarkTest.TestTimerSecondsCPU (301 ms) [ RUN ] BenchmarkTest.TestTimerSecondsGPU [ OK ] BenchmarkTest.TestTimerSecondsGPU (300 ms) [----------] 10 tests from BenchmarkTest (1201 ms total)

[----------] 6 tests from CommonTest [ RUN ] CommonTest.TestCublasHandler [ OK ] CommonTest.TestCublasHandler (0 ms) [ RUN ] CommonTest.TestVslStream [ OK ] CommonTest.TestVslStream (0 ms) [ RUN ] CommonTest.TestBrewMode [ OK ] CommonTest.TestBrewMode (0 ms) [ RUN ] CommonTest.TestPhase src/caffe/test/test_common.cpp:34: Failure Value of: Caffe::TRAIN Actual: 0 Expected: Caffe::phase() Which is: 1 [ FAILED ] CommonTest.TestPhase (0 ms) [ RUN ] CommonTest.TestRandSeedCPU [ OK ] CommonTest.TestRandSeedCPU (0 ms) [ RUN ] CommonTest.TestRandSeedGPU [ OK ] CommonTest.TestRandSeedGPU (15 ms) [----------] 6 tests from CommonTest (16 ms total)

vahidk avatar Mar 27 '14 18:03 vahidk

Sorry, this is quite strange and isn't reproducible. Make sure that git status doesn't show any changes and perhaps try making again.

shelhamer avatar Apr 04 '14 05:04 shelhamer

Closing on the assumption that this is fixed by #366 (only in the dev branch). Please comment if you still see this failure on the dev branch.

jeffdonahue avatar Apr 26 '14 01:04 jeffdonahue

This harmless failure was explained by the order of the tests differing across machines. gtest runs the tests in different orders (depending on order of linking).

shelhamer avatar Apr 26 '14 01:04 shelhamer

I still have the problem! "src/caffe/test/test_common.cpp:34: Failure Value of: Caffe::TRAIN Actual: 0 Expected: Caffe::phase()"

lixyresearch avatar May 09 '14 08:05 lixyresearch

Did you update to the latest dev and rebuild the tests?

The fix isn't in master yet. If you are on dev, include the random seed given at the top of make runtest's output.

Le vendredi 9 mai 2014, lxycnu <[email protected]javascript:_e(%7B%7D,'cvml','[email protected]');> a écrit :

I still have the problem! "src/caffe/test/test_common.cpp:34: Failure Value of: Caffe::TRAIN Actual: 0 Expected: Caffe::phase()"

— Reply to this email directly or view it on GitHubhttps://github.com/BVLC/caffe/issues/264#issuecomment-42642486 .

shelhamer avatar May 09 '14 16:05 shelhamer