6 #include <boost/test/unit_test.hpp> 14 IdentitySimpleFixture()
17 " name: \"Placeholder\"" 18 " op: \"Placeholder\"" 37 " input: \"Placeholder\"" 51 RunTest<1>({ 1.0f, 2.0f, 3.0f, 4.0f }, { 1.0f, 2.0f, 3.0f, 4.0f });
58 m_Prototext =
"node{ " 59 " name: \"Placeholder\"" 60 " op: \"Placeholder\"" 79 " input: \"Placeholder\"" 90 " input: \"Identity\"" 91 " input: \"Identity\"" 99 SetupSingleInputSingleOutput({ 4 },
"Placeholder",
"Add");
105 RunTest<1>({ 1.0f, 2.0f, 3.0f, 4.0f }, { 2.0f, 4.0f, 6.0f, 8.0f });
110 IdentityChainFixture()
112 m_Prototext =
"node{ " 113 " name: \"Placeholder\"" 114 " op: \"Placeholder\"" 125 " unknown_rank: true" 131 " name: \"Identity\"" 133 " input: \"Placeholder\"" 142 " name: \"Identity2\"" 144 " input: \"Identity\"" 152 SetupSingleInputSingleOutput({ 4 },
"Placeholder",
"Identity2");
158 RunTest<1>({ 1.0f, 2.0f, 3.0f, 4.0f }, { 1.0f, 2.0f, 3.0f, 4.0f });
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
BOOST_FIXTURE_TEST_CASE(IdentitySimple, IdentitySimpleFixture)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)