ArmNN
 21.02
DepthwiseConvolution2d.cpp File Reference
#include "ParserPrototxtFixture.hpp"
#include "armnnTfParser/ITfParser.hpp"
#include <armnnUtils/Permute.hpp>
#include <boost/test/unit_test.hpp>
#include <string>
#include <iostream>

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DNhwcSame, DepthwiseConvolution2dNhwcSameFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DNchwSame, DepthwiseConvolution2dNchwSameFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DNhwcValid, DepthwiseConvolution2dNhwcValidFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DNchwValid, DepthwiseConvolution2dNchwValidFixture)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( ParseDepthwiseConv2DNhwcSame  ,
DepthwiseConvolution2dNhwcSameFixture   
)

Definition at line 146 of file DepthwiseConvolution2d.cpp.

147 {
148  RunTest<4>({ 1, 2, 3, 4, 5, 6, 7, 8, 9 },
149  { 2.5f, 5.f, 2.5f, 3.5f, 7.f, 3.5f, 4.5f, 9.f, 4.5f,
150  6.f, 12.f, 6.f, 7.5f, 15.f, 7.5f, 9.f, 18.f, 9.f,
151  5.5f, 11.f, 5.5f, 6.5f, 13.f, 6.5f, 7.5f, 15.f, 7.5f });
152 }

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( ParseDepthwiseConv2DNchwSame  ,
DepthwiseConvolution2dNchwSameFixture   
)

Definition at line 159 of file DepthwiseConvolution2d.cpp.

160 {
161  RunTest<4>({ 1, 4, 7, 2, 5, 8, 3, 6, 9 },
162  { 2.5f, 6.f, 5.5f, 5.f, 12.f, 11.f, 2.5f, 6.f, 5.5f,
163  3.5f, 7.5f, 6.5f, 7.f, 15.f, 13.f, 3.5f, 7.5f, 6.5f,
164  4.5f, 9.f, 7.5f, 9.f, 18.f, 15.f, 4.5f, 9.f, 7.5f });
165 }

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( ParseDepthwiseConv2DNhwcValid  ,
DepthwiseConvolution2dNhwcValidFixture   
)

Definition at line 172 of file DepthwiseConvolution2d.cpp.

173 {
174  RunTest<4>({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, // input data
175  { 6.f, 12.f, 6.f, 7.5f, 15.f, 7.5f, 9.f, 18.f, 9.f }); // output expected data
176 }

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( ParseDepthwiseConv2DNchwValid  ,
DepthwiseConvolution2dNchwValidFixture   
)

Definition at line 183 of file DepthwiseConvolution2d.cpp.

References BOOST_AUTO_TEST_SUITE_END().

184 {
185  RunTest<4>({ 1, 4, 7, 2, 5, 8, 3, 6, 9 },
186  { 6.f, 12.f, 6.f, 7.5f, 15.f, 7.5f, 9.f, 18.f, 9.f });
187 }