#include <boost/test/unit_test.hpp>
#include "armnnOnnxParser/IOnnxParser.hpp"
#include "ParserPrototxtFixture.hpp"
Go to the source code of this file.
◆ BOOST_FIXTURE_TEST_CASE() [1/4]
BOOST_FIXTURE_TEST_CASE |
( |
ValidClipTest |
, |
|
|
ClipFixture |
|
|
) |
| |
Definition at line 71 of file Clip.cpp.
73 RunTest<1>({{
"Input", { -1.5f, 1.25f, 3.5f, 8.0, 2.5}}},
74 {{
"Output", { 2.0f, 2.0f, 3.5f, 3.5, 2.5}}});
◆ BOOST_FIXTURE_TEST_CASE() [2/4]
BOOST_FIXTURE_TEST_CASE |
( |
ValidNoMaxInputClipTest |
, |
|
|
ClipNoMaxInputFixture |
|
|
) |
| |
Definition at line 82 of file Clip.cpp.
84 RunTest<1>({{
"Input", { -1.5f, -5.25f, -0.5f, 8.0f, std::numeric_limits<float>::max() }}},
85 {{
"Output", { 0.0f, 0.0f, 0.0f, 8.0f, std::numeric_limits<float>::max() }}});
◆ BOOST_FIXTURE_TEST_CASE() [3/4]
BOOST_FIXTURE_TEST_CASE |
( |
ValidNoMinInputClipTest |
, |
|
|
ClipNoMinInputFixture |
|
|
) |
| |
Definition at line 93 of file Clip.cpp.
95 RunTest<1>({{
"Input", { std::numeric_limits<float>::lowest(), -5.25f, -0.5f, 8.0f, 200.0f }}},
96 {{
"Output", { std::numeric_limits<float>::lowest(), -5.25f, -0.5f, 6.0f, 6.0f }}});
◆ BOOST_FIXTURE_TEST_CASE() [4/4]
BOOST_FIXTURE_TEST_CASE |
( |
ValidNoInputClipTest |
, |
|
|
ClipNoInputFixture |
|
|
) |
| |
Definition at line 104 of file Clip.cpp.
References BOOST_AUTO_TEST_SUITE_END().
106 RunTest<1>({{
"Input", { std::numeric_limits<float>::lowest(), -1.25f, 3.5f, 8.0f,
107 std::numeric_limits<float>::max()}}},
108 {{
"Output", { std::numeric_limits<float>::lowest(), -1.25f, 3.5f, 8.0f,
109 std::numeric_limits<float>::max()}}});