Skip to content
Snippets Groups Projects
Commit da35647a authored by Matthew  Newson's avatar Matthew Newson
Browse files

Add unit test for erf and include math.h

parent 6314b2c4
No related branches found
No related tags found
1 merge request!47Add erf operators and unit tests
Pipeline #73831 failed
......@@ -2,6 +2,7 @@
#define __AIDGE_EXPORT_CPP_KERNELS_ERP__
#include "network/typedefs.hpp"
#include "math.h"
template<int _NB_ELTS,
typename Input_T, typename Output_T>
......
......@@ -659,5 +659,14 @@ class test_operator_export(unittest.TestCase):
initFiller(model)
self.unit_test_export(model, "Conv", [[1, 1, 9, 9]])
def test_erf(self):
print("Erf")
model = aidge_core.sequential([
aidge_core.Erf(name="erf")
])
self.unit_test_export(model, "Erf", [[1, 10]])
if __name__ == '__main__':
unittest.main()
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