6 #include <boost/test/unit_test.hpp> 8 #include "../TfLiteParser.hpp" 16 explicit ExpFixture(
const std::string & inputShape,
17 const std::string & outputShape)
22 "operator_codes": [ { "builtin_code": "EXP" } ], 26 "shape": )" + inputShape + R"(, 29 "name": "inputTensor", 38 "shape": )" + outputShape + R"( , 41 "name": "outputTensor", 57 "custom_options_format": "FLEXBUFFERS" 71 struct SimpleExpFixture :
public ExpFixture
73 SimpleExpFixture() : ExpFixture(
"[ 1, 2, 3, 1 ]",
"[ 1, 2, 3, 1 ]") {}
79 RunTest<4, DataType::Float32>(0, {{
"inputTensor", { 0.0f, 1.0f, 2.0f,
81 {{
"outputTensor", { 1.0f, 2.718281f, 7.3890515f,
82 20.0855185f, 54.5980834f, 148.4129329f} } });
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_FIXTURE_TEST_CASE(ParseExp, SimpleExpFixture)