#include <boost/test/unit_test.hpp>
#include "ParserFlatbuffersFixture.hpp"
#include "../TfLiteParser.hpp"
#include <string>
#include <iostream>
Go to the source code of this file.
◆ BOOST_FIXTURE_TEST_CASE() [1/2]
BOOST_FIXTURE_TEST_CASE |
( |
ParseDiv |
, |
|
|
SimpleDivFixture |
|
|
) |
| |
Definition at line 95 of file Div.cpp.
98 float Inf = std::numeric_limits<float>::infinity();
99 float NaN = std::numeric_limits<float>::quiet_NaN();
101 RunTest<4, DataType::Float32>(0, {{
"inputTensor1", { 0.0f, 1.0f, 2.0f,
104 9.0f, 10.0f, -11.0f } },
105 {
"inputTensor2", { 0.0f, 0.0f, 4.0f,
108 9.0f, 10.0f, 11.0f} } },
109 {{
"outputTensor", { NaN, Inf, 0.5f,
112 1.0f, 1.0f, -1.0f } } });
◆ BOOST_FIXTURE_TEST_CASE() [2/2]
BOOST_FIXTURE_TEST_CASE |
( |
ParseDynamicDiv |
, |
|
|
DynamicDivFixture |
|
|
) |
| |
Definition at line 121 of file Div.cpp.
References BOOST_AUTO_TEST_SUITE_END().
124 float Inf = std::numeric_limits<float>::infinity();
125 float NaN = std::numeric_limits<float>::quiet_NaN();
127 RunTest<4, DataType::Float32, DataType::Float32>(0, {{
"inputTensor1", { 0.0f, 1.0f, 2.0f,
130 9.0f, 10.0f, -11.0f } },
131 {
"inputTensor2", { 0.0f, 0.0f, 4.0f,
134 9.0f, 10.0f, 11.0f} } },
135 {{
"outputTensor", { NaN, Inf, 0.5f,
138 1.0f, 1.0f, -1.0f } } },
true);