Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aliciabbb opened this issue Apr 29, 2018 · 1 comment

Comments

@aliciabbb
Copy link

aliciabbb commented Apr 29, 2018

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

@aliciabbb
Copy link
Author

Hope to get a reply,thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@aliciabbb and others