Skip to content
Snippets Groups Projects
Commit 47390980 authored by Martin Mrovec's avatar Martin Mrovec
Browse files

FIX: Added exceptions to not implemented functions

parent 04d751a2
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ namespace lib4neuro { ...@@ -33,7 +33,7 @@ namespace lib4neuro {
Neuron* NeuronAbsolute::get_derivative() {//TODO: implement this function correctly Neuron* NeuronAbsolute::get_derivative() {//TODO: implement this function correctly
THROW_NOT_IMPLEMENTED_ERROR(""); THROW_NOT_IMPLEMENTED_ERROR("The derivative of Absolute neuron is not implemented yet");
} }
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "Neuron.h" #include "Neuron.h"
#include "NeuronSerialization.h" #include "NeuronSerialization.h"
#include "NeuronFilterSerialization.h" #include "NeuronFilterSerialization.h"
#include "exceptions.h"
BOOST_CLASS_EXPORT_IMPLEMENT(lib4neuro::NeuronFilter); BOOST_CLASS_EXPORT_IMPLEMENT(lib4neuro::NeuronFilter);
...@@ -32,8 +33,7 @@ namespace lib4neuro { ...@@ -32,8 +33,7 @@ namespace lib4neuro {
} }
Neuron* NeuronFilter::get_derivative() { Neuron* NeuronFilter::get_derivative() {
NeuronBinary* output = new NeuronBinary(); THROW_NOT_IMPLEMENTED_ERROR("The derivative of Filter neuron is not implemented yet");
return output;
} }
......
...@@ -57,7 +57,7 @@ namespace lib4neuro { ...@@ -57,7 +57,7 @@ namespace lib4neuro {
} }
Neuron* NeuronLinearSaturated::get_derivative() { Neuron* NeuronLinearSaturated::get_derivative() {
THROW_NOT_IMPLEMENTED_ERROR(""); THROW_NOT_IMPLEMENTED_ERROR("The derivative of Linear Saturated neuron is not implemented yet");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment