Skip to content

NeuronLayerTest/0.TestTanH failed when I run test_caffe_main in unit_tests  #39

@aliciabbb

Description

@aliciabbb

I am working on armv7 tinker board, I refer to the User Quick Guide and everything is OK, but when I am doing the unit test which is the last step. something is wrong and i checked the source code, try to fix it. But nothing can be changed.

[ RUN      ] NeuronLayerTest/0.TestAbsVal
[       OK ] NeuronLayerTest/0.TestAbsVal (0 ms)
[ RUN      ] NeuronLayerTest/0.TestReLU
[       OK ] NeuronLayerTest/0.TestReLU (0 ms)
[ RUN      ] NeuronLayerTest/0.TestReLUWithNegativeSlope
[       OK ] NeuronLayerTest/0.TestReLUWithNegativeSlope (10 ms)
[ RUN      ] NeuronLayerTest/0.TestSigmoid
[       OK ] NeuronLayerTest/0.TestSigmoid (0 ms)
[ RUN      ] NeuronLayerTest/0.TestTanH
test_neuron_layer.cpp:191: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) + 1e-2) >= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 1.01 vs nan
test_neuron_layer.cpp:194: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) - 1e-2) <= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 0.99 vs nan
test_neuron_layer.cpp:191: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) + 1e-2) >= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 1.01 vs nan
test_neuron_layer.cpp:194: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) - 1e-2) <= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 0.99 vs nan
test_neuron_layer.cpp:191: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) + 1e-2) >= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 1.01 vs nan
test_neuron_layer.cpp:194: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) - 1e-2) <= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 0.99 vs nan
test_neuron_layer.cpp:191: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) + 1e-2) >= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 1.01 vs nan
test_neuron_layer.cpp:194: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) - 1e-2) <= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 0.99 vs nan
test_neuron_layer.cpp:191: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) + 1e-2) >= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 1.01 vs nan
test_neuron_layer.cpp:194: Failure
Expected: (this->blob_top_->data_at(i, j, k, l) - 1e-2) <= ((exp(2*this->blob_bottom_->data_at(i, j, k, l)) - 1) / (exp(2*this->blob_bottom_->data_at(i, j, k, l)) + 1)), actual: 0.99 vs nan
[  FAILED  ] NeuronLayerTest/0.TestTanH, where TypeParam = caffe::CPUDevice<float> (2 ms)

My system configuration

Operating system: debian(32)
Compiler: tinker board(same to pi3)
CUDA version (if applicable): no
CUDNN version (if applicable): no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions