aboutsummaryrefslogtreecommitdiff
path: root/21.02/_infer_output_tests_8hpp.xhtml
blob: 7274deaf182f0e5530f4c9cd00edf7e14b703bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
<!-- Copyright (c) 2020 ARM Limited. -->
<!--                                 -->
<!-- SPDX-License-Identifier: MIT    -->
<!--                                 -->
<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: src/armnn/test/InferOutputTests.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/>
  <td style="padding-left: 0.5em;">
   <div id="projectname">
   &#160;<span id="projectnumber">21.02</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_infer_output_tests_8hpp.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">InferOutputTests.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_test_utils_8hpp_source.xhtml">TestUtils.hpp</a>&quot;</code><br />
<code>#include &lt;<a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_arg_min_max_layer_8hpp_source.xhtml">layers/ArgMinMaxLayer.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_batch_to_space_nd_layer_8hpp_source.xhtml">layers/BatchToSpaceNdLayer.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_space_to_depth_layer_8hpp_source.xhtml">layers/SpaceToDepthLayer.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_prelu_layer_8hpp_source.xhtml">layers/PreluLayer.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_stack_layer_8hpp_source.xhtml">layers/StackLayer.hpp</a>&gt;</code><br />
<code>#include &lt;boost/test/unit_test.hpp&gt;</code><br />
</div>
<p><a href="_infer_output_tests_8hpp_source.xhtml">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a673e4af24225bb5d4e5e502befdaf122"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a> (const <a class="el" href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a> descriptor, const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;inputShapes, std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;outputShapes)</td></tr>
<tr class="separator:a673e4af24225bb5d4e5e502befdaf122"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61f78d19deeaf960ac03ed4a7db98b8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a61f78d19deeaf960ac03ed4a7db98b8d">ArgMinMaxInferOutputShape4dTest</a> ()</td></tr>
<tr class="separator:a61f78d19deeaf960ac03ed4a7db98b8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eba187ee3dcec0db603b27b0954cec9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a5eba187ee3dcec0db603b27b0954cec9">ArgMinMaxInferOutputShape3dTest</a> ()</td></tr>
<tr class="separator:a5eba187ee3dcec0db603b27b0954cec9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae58e3f211ae2a124b13290c8b89aa87b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#ae58e3f211ae2a124b13290c8b89aa87b">ArgMinMaxInferOutputShape2dTest</a> ()</td></tr>
<tr class="separator:ae58e3f211ae2a124b13290c8b89aa87b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a005b7c03146e5a090de781966172c6e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a005b7c03146e5a090de781966172c6e1">ArgMinMaxInferOutputShape1dTest</a> ()</td></tr>
<tr class="separator:a005b7c03146e5a090de781966172c6e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae03eed4bebaa0196f549e0e9b81f164"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#aae03eed4bebaa0196f549e0e9b81f164">BatchToSpaceInferOutputShapeTest</a> ()</td></tr>
<tr class="separator:aae03eed4bebaa0196f549e0e9b81f164"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee284f22b73268f00e5e9f57bc17c525"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#aee284f22b73268f00e5e9f57bc17c525">SpaceToDepthInferOutputShapeTest</a> ()</td></tr>
<tr class="separator:aee284f22b73268f00e5e9f57bc17c525"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57ed098f3dd5d1a34fdb3ced4a5d73d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a> (const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;inputShapes, std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;outputShapes)</td></tr>
<tr class="separator:a57ed098f3dd5d1a34fdb3ced4a5d73d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23f861a85ba1016450691f7566eecfe2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a23f861a85ba1016450691f7566eecfe2">PreluInferOutputShapeSameDimsTest</a> ()</td></tr>
<tr class="separator:a23f861a85ba1016450691f7566eecfe2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f353e3601ce891c0e0c2a3008b902e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a9f353e3601ce891c0e0c2a3008b902e8">PreluInferOutputShapeInputBiggerTest</a> ()</td></tr>
<tr class="separator:a9f353e3601ce891c0e0c2a3008b902e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58a128d5e6ad6a3d1d393c2cf6b5fa63"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a58a128d5e6ad6a3d1d393c2cf6b5fa63">PreluInferOutputShapeAlphaBiggerTest</a> ()</td></tr>
<tr class="separator:a58a128d5e6ad6a3d1d393c2cf6b5fa63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29704df6ecb907082856bbb7474f494e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a29704df6ecb907082856bbb7474f494e">PreluInferOutputShapeNoMatchTest</a> ()</td></tr>
<tr class="separator:a29704df6ecb907082856bbb7474f494e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef8723faea6131aaa1d535a17630df42"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#aef8723faea6131aaa1d535a17630df42">CreatePreluLayerHelper</a> (<a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;graph, const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &amp;inputShape, const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &amp;alphaShape, const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &amp;outputShape)</td></tr>
<tr class="separator:aef8723faea6131aaa1d535a17630df42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e85eb8bf5d03adb0a5d86a37894a9ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a0e85eb8bf5d03adb0a5d86a37894a9ea">PreluValidateTensorShapesFromInputsMatchTest</a> ()</td></tr>
<tr class="separator:a0e85eb8bf5d03adb0a5d86a37894a9ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88b77508b2bd69bcec713ef1ab436b8c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a88b77508b2bd69bcec713ef1ab436b8c">PreluValidateTensorShapesFromInputsNoMatchTest</a> ()</td></tr>
<tr class="separator:a88b77508b2bd69bcec713ef1ab436b8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2985b2f0f61fcad5f75e5119e7b9916e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a2985b2f0f61fcad5f75e5119e7b9916e">StackInferOutputShapeImpl</a> (const <a class="el" href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a> descriptor, const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;inputShapes, std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;outputShapes)</td></tr>
<tr class="separator:a2985b2f0f61fcad5f75e5119e7b9916e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd1bb9e1b7783eccf8dca20d455064a3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#abd1bb9e1b7783eccf8dca20d455064a3">StackInferOutputShapeFromInputsMatchTest</a> ()</td></tr>
<tr class="separator:abd1bb9e1b7783eccf8dca20d455064a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9195d0488c41fb4a5967f8a2c5bdb6e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a9195d0488c41fb4a5967f8a2c5bdb6e9">StackInferOutputShapeFromInputsNoMatchTest</a> ()</td></tr>
<tr class="separator:a9195d0488c41fb4a5967f8a2c5bdb6e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adad94ff1ff901704556db7b602d46a05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#adad94ff1ff901704556db7b602d46a05">CreateStackLayerHelper</a> (<a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;graph, const <a class="el" href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a> &amp;descriptor, const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;inputShapes, const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &amp;outputShape)</td></tr>
<tr class="separator:adad94ff1ff901704556db7b602d46a05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a2a494f5a3ff1885fa9d62c6c500e52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a9a2a494f5a3ff1885fa9d62c6c500e52">StackValidateTensorShapesFromInputsMatchTest</a> ()</td></tr>
<tr class="separator:a9a2a494f5a3ff1885fa9d62c6c500e52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af061819a84da0c72056b016d02d239f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#af061819a84da0c72056b016d02d239f3">StackValidateTensorShapesFromInputsNoMatchTest</a> ()</td></tr>
<tr class="separator:af061819a84da0c72056b016d02d239f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f1ec6ab0066448f4438bbe852b4f3e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a3f1ec6ab0066448f4438bbe852b4f3e2">Convolution2dInferOutputShapeTest</a> ()</td></tr>
<tr class="separator:a3f1ec6ab0066448f4438bbe852b4f3e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af74f1701b2b4a9313a682ab673edf2f5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#af74f1701b2b4a9313a682ab673edf2f5">TransposeConvolution2dInferOutputShapeTest</a> ()</td></tr>
<tr class="separator:af74f1701b2b4a9313a682ab673edf2f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0443e325bae088a453cef63002516742"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a0443e325bae088a453cef63002516742">DepthwiseConvolution2dInferOutputShapeTest</a> ()</td></tr>
<tr class="separator:a0443e325bae088a453cef63002516742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07bb1afd2b46d4bf83bab05ef89fc154"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a07bb1afd2b46d4bf83bab05ef89fc154">QLstmInferOutputShapeImpl</a> (const <a class="el" href="structarmnn_1_1_q_lstm_descriptor.xhtml">armnn::QLstmDescriptor</a> descriptor, const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;inputShapes, std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;outputShapes)</td></tr>
<tr class="separator:a07bb1afd2b46d4bf83bab05ef89fc154"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c7ba1f02c1532cf22a54f624aa6fd4e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a9c7ba1f02c1532cf22a54f624aa6fd4e">QLstmInferOutputShapeTest</a> ()</td></tr>
<tr class="separator:a9c7ba1f02c1532cf22a54f624aa6fd4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a13b517c2553b8173c26d286cba4a13"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a4a13b517c2553b8173c26d286cba4a13">QuantizedLstmInferOutputShapeImpl</a> (const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;inputShapes, std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;outputShapes)</td></tr>
<tr class="separator:a4a13b517c2553b8173c26d286cba4a13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e21fe15b65644bb6a7beb25fbd04f14"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_infer_output_tests_8hpp.xhtml#a4e21fe15b65644bb6a7beb25fbd04f14">QuantizedLstmInferOutputShapeTest</a> ()</td></tr>
<tr class="separator:a4e21fe15b65644bb6a7beb25fbd04f14"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a005b7c03146e5a090de781966172c6e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a005b7c03146e5a090de781966172c6e1">&#9670;&nbsp;</a></span>ArgMinMaxInferOutputShape1dTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ArgMinMaxInferOutputShape1dTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00085">85</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00019">ArgMinMaxInferOutputShapeImpl()</a>, and <a class="el" href="_descriptors_8hpp_source.xhtml#l00072">ArgMinMaxDescriptor::m_Axis</a>.</p>
<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;{</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a> descriptor;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_arg_min_max_descriptor.xhtml#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a> = 0;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    {</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        { 5 }</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    };</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a>(descriptor, inputShapes, outputShapes));</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape( { 1 } );</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShape);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_arg_min_max_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a></div><div class="ttdoc">An ArgMinMaxDescriptor for ArgMinMaxLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00056">Descriptors.hpp:56</a></div></div>
<div class="ttc" id="_infer_output_tests_8hpp_xhtml_a673e4af24225bb5d4e5e502befdaf122"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a></div><div class="ttdeci">void ArgMinMaxInferOutputShapeImpl(const armnn::ArgMinMaxDescriptor descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00019">InferOutputTests.hpp:19</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_arg_min_max_descriptor_xhtml_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_arg_min_max_descriptor.xhtml#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::ArgMinMaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Axis to reduce across the input tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00072">Descriptors.hpp:72</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ae58e3f211ae2a124b13290c8b89aa87b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae58e3f211ae2a124b13290c8b89aa87b">&#9670;&nbsp;</a></span>ArgMinMaxInferOutputShape2dTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ArgMinMaxInferOutputShape2dTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00066">66</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00019">ArgMinMaxInferOutputShapeImpl()</a>, and <a class="el" href="_descriptors_8hpp_source.xhtml#l00072">ArgMinMaxDescriptor::m_Axis</a>.</p>
<div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;{</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a> descriptor;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_arg_min_max_descriptor.xhtml#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a> = 1;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    {</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        { 3, 2 }</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    };</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a>(descriptor, inputShapes, outputShapes));</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape( { 3 } );</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShape);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_arg_min_max_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a></div><div class="ttdoc">An ArgMinMaxDescriptor for ArgMinMaxLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00056">Descriptors.hpp:56</a></div></div>
<div class="ttc" id="_infer_output_tests_8hpp_xhtml_a673e4af24225bb5d4e5e502befdaf122"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a></div><div class="ttdeci">void ArgMinMaxInferOutputShapeImpl(const armnn::ArgMinMaxDescriptor descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00019">InferOutputTests.hpp:19</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_arg_min_max_descriptor_xhtml_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_arg_min_max_descriptor.xhtml#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::ArgMinMaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Axis to reduce across the input tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00072">Descriptors.hpp:72</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a5eba187ee3dcec0db603b27b0954cec9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eba187ee3dcec0db603b27b0954cec9">&#9670;&nbsp;</a></span>ArgMinMaxInferOutputShape3dTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ArgMinMaxInferOutputShape3dTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00047">47</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00019">ArgMinMaxInferOutputShapeImpl()</a>, and <a class="el" href="_descriptors_8hpp_source.xhtml#l00072">ArgMinMaxDescriptor::m_Axis</a>.</p>
<div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;{</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a> descriptor;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_arg_min_max_descriptor.xhtml#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a> = 0;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        { 1, 3, 2 }</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    };</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a>(descriptor, inputShapes, outputShapes));</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape( { 3, 2 } );</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShape);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_arg_min_max_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a></div><div class="ttdoc">An ArgMinMaxDescriptor for ArgMinMaxLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00056">Descriptors.hpp:56</a></div></div>
<div class="ttc" id="_infer_output_tests_8hpp_xhtml_a673e4af24225bb5d4e5e502befdaf122"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a></div><div class="ttdeci">void ArgMinMaxInferOutputShapeImpl(const armnn::ArgMinMaxDescriptor descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00019">InferOutputTests.hpp:19</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_arg_min_max_descriptor_xhtml_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_arg_min_max_descriptor.xhtml#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::ArgMinMaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Axis to reduce across the input tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00072">Descriptors.hpp:72</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a61f78d19deeaf960ac03ed4a7db98b8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61f78d19deeaf960ac03ed4a7db98b8d">&#9670;&nbsp;</a></span>ArgMinMaxInferOutputShape4dTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ArgMinMaxInferOutputShape4dTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00028">28</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00019">ArgMinMaxInferOutputShapeImpl()</a>, and <a class="el" href="_descriptors_8hpp_source.xhtml#l00072">ArgMinMaxDescriptor::m_Axis</a>.</p>
<div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a> descriptor;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_arg_min_max_descriptor.xhtml#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a> = 2;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        { 1, 3, 2, 4 }</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    };</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a>(descriptor, inputShapes, outputShapes));</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape( { 1, 3, 4 } );</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShape);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_arg_min_max_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a></div><div class="ttdoc">An ArgMinMaxDescriptor for ArgMinMaxLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00056">Descriptors.hpp:56</a></div></div>
<div class="ttc" id="_infer_output_tests_8hpp_xhtml_a673e4af24225bb5d4e5e502befdaf122"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a673e4af24225bb5d4e5e502befdaf122">ArgMinMaxInferOutputShapeImpl</a></div><div class="ttdeci">void ArgMinMaxInferOutputShapeImpl(const armnn::ArgMinMaxDescriptor descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00019">InferOutputTests.hpp:19</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_arg_min_max_descriptor_xhtml_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_arg_min_max_descriptor.xhtml#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::ArgMinMaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Axis to reduce across the input tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00072">Descriptors.hpp:72</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a673e4af24225bb5d4e5e502befdaf122"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a673e4af24225bb5d4e5e502befdaf122">&#9670;&nbsp;</a></span>ArgMinMaxInferOutputShapeImpl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ArgMinMaxInferOutputShapeImpl </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structarmnn_1_1_arg_min_max_descriptor.xhtml">armnn::ArgMinMaxDescriptor</a>&#160;</td>
          <td class="paramname"><em>descriptor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>inputShapes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>outputShapes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00019">19</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, and <a class="el" href="_arg_min_max_layer_8cpp_source.xhtml#l00037">ArgMinMaxLayer::InferOutputShapes()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00085">ArgMinMaxInferOutputShape1dTest()</a>, <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00066">ArgMinMaxInferOutputShape2dTest()</a>, <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00047">ArgMinMaxInferOutputShape3dTest()</a>, and <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00028">ArgMinMaxInferOutputShape4dTest()</a>.</p>
<div class="fragment"><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;{</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="keyword">auto</span> argMinMaxLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_arg_min_max_layer.xhtml">armnn::ArgMinMaxLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;argMinMax&quot;</span>);</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    outputShapes = argMinMaxLayer-&gt;<a class="code" href="classarmnn_1_1_arg_min_max_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(inputShapes);</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="classarmnn_1_1_arg_min_max_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_arg_min_max_layer.xhtml">armnn::ArgMinMaxLayer</a></div><div class="ttdoc">This layer represents a ArgMinMax operation. </div><div class="ttdef"><b>Definition:</b> <a href="_arg_min_max_layer_8hpp_source.xhtml#l00014">ArgMinMaxLayer.hpp:14</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="classarmnn_1_1_arg_min_max_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_arg_min_max_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::ArgMinMaxLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">Infers the output shape from a given input shape and axis parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_arg_min_max_layer_8cpp_source.xhtml#l00037">ArgMinMaxLayer.cpp:37</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aae03eed4bebaa0196f549e0e9b81f164"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae03eed4bebaa0196f549e0e9b81f164">&#9670;&nbsp;</a></span>BatchToSpaceInferOutputShapeTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BatchToSpaceInferOutputShapeTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00104">104</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, <a class="el" href="_batch_to_space_nd_layer_8cpp_source.xhtml#l00060">BatchToSpaceNdLayer::InferOutputShapes()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00696">BatchToSpaceNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00698">BatchToSpaceNdDescriptor::m_Crops</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00700">BatchToSpaceNdDescriptor::m_DataLayout</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p>
<div class="fragment"><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;{</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <a class="code" href="structarmnn_1_1_batch_to_space_nd_descriptor.xhtml">armnn::BatchToSpaceNdDescriptor</a> descriptor;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_batch_to_space_nd_descriptor.xhtml#a02e143524aefddd40b485fcf7dea6696">m_BlockShape</a> = {2, 2};</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_batch_to_space_nd_descriptor.xhtml#a3941f674c071c9503e00d2b59e92e454">m_Crops</a> = {{0, 0}, {2, 0}};</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_batch_to_space_nd_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <a class="code" href="classarmnn_1_1_batch_to_space_nd_layer.xhtml">armnn::BatchToSpaceNdLayer</a>* <span class="keyword">const</span> batchToSpaceLayer =</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_batch_to_space_nd_layer.xhtml">armnn::BatchToSpaceNdLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;batchToSpace&quot;</span>);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    std::vector&lt;armnn::TensorShape&gt; shapes;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; theDimSizes = {8, 1, 3, 1};</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> shape(4, theDimSizes.data());</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    shapes.push_back(shape);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; expectedDimSizes = {2, 2, 4, 1};</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedShape(4, expectedDimSizes.data());</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    BOOST_CHECK(expectedShape == batchToSpaceLayer-&gt;<a class="code" href="classarmnn_1_1_batch_to_space_nd_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(shapes).at(0));</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_batch_to_space_nd_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_batch_to_space_nd_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::BatchToSpaceNdLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_batch_to_space_nd_layer_8cpp_source.xhtml#l00060">BatchToSpaceNdLayer.cpp:60</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="structarmnn_1_1_batch_to_space_nd_descriptor_xhtml_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_batch_to_space_nd_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">armnn::BatchToSpaceNdDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00700">Descriptors.hpp:700</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_batch_to_space_nd_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_batch_to_space_nd_descriptor.xhtml">armnn::BatchToSpaceNdDescriptor</a></div><div class="ttdoc">A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00673">Descriptors.hpp:673</a></div></div>
<div class="ttc" id="structarmnn_1_1_batch_to_space_nd_descriptor_xhtml_a02e143524aefddd40b485fcf7dea6696"><div class="ttname"><a href="structarmnn_1_1_batch_to_space_nd_descriptor.xhtml#a02e143524aefddd40b485fcf7dea6696">armnn::BatchToSpaceNdDescriptor::m_BlockShape</a></div><div class="ttdeci">std::vector&lt; unsigned int &gt; m_BlockShape</div><div class="ttdoc">Block shape values. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00696">Descriptors.hpp:696</a></div></div>
<div class="ttc" id="classarmnn_1_1_batch_to_space_nd_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_batch_to_space_nd_layer.xhtml">armnn::BatchToSpaceNdLayer</a></div><div class="ttdoc">This layer represents a BatchToSpaceNd operation. </div><div class="ttdef"><b>Definition:</b> <a href="_batch_to_space_nd_layer_8hpp_source.xhtml#l00013">BatchToSpaceNdLayer.hpp:13</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_batch_to_space_nd_descriptor_xhtml_a3941f674c071c9503e00d2b59e92e454"><div class="ttname"><a href="structarmnn_1_1_batch_to_space_nd_descriptor.xhtml#a3941f674c071c9503e00d2b59e92e454">armnn::BatchToSpaceNdDescriptor::m_Crops</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; unsigned int, unsigned int &gt; &gt; m_Crops</div><div class="ttdoc">The values to crop from the input dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00698">Descriptors.hpp:698</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a3f1ec6ab0066448f4438bbe852b4f3e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f1ec6ab0066448f4438bbe852b4f3e2">&#9670;&nbsp;</a></span>Convolution2dInferOutputShapeTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Convolution2dInferOutputShapeTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00434">434</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.xhtml#l00083">Convolution2dLayer::InferOutputShapes()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00456">Convolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00450">Convolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00452">Convolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00444">Convolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00438">Convolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00440">Convolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00442">Convolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00446">Convolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00448">Convolution2dDescriptor::m_StrideY</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>.</p>
<div class="fragment"><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;{</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;</div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;    <a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml">armnn::Convolution2dDescriptor</a> descriptor;</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#aa3c6a77a963a98ccb8ea7b8fd008a8c1">m_DilationX</a> = 2;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#a302b688d88dd73cde0fb1faef6679907">m_DilationY</a> = 2;</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#a56b51f56cef50cdfa554258eecdab046">m_PadTop</a> = 1;</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#aa9e49717ebdb741e8c767741647fc618">m_PadBottom</a> = 1;</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a> = 1;</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#a002bc30e590d78cbb4f4d12171055ca7">m_PadRight</a> = 1;</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 3;</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 3;</div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a>;</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <a class="code" href="classarmnn_1_1_convolution2d_layer.xhtml">armnn::Convolution2dLayer</a>* <span class="keyword">const</span> convolution2dLayer =</div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;            graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_convolution2d_layer.xhtml">armnn::Convolution2dLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;convolution2d&quot;</span>);</div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;</div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;    std::vector&lt;armnn::TensorShape&gt; shapes;</div><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; inputSize = {1, 2, 10, 10};</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> inputShape(4, inputSize.data());</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    shapes.push_back(inputShape);</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; filterSize = { 1, 2, 2, 2};</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> filterShape(4, filterSize.data());</div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    shapes.push_back(filterShape);</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; expectedOutputSizes = {1, 1, 4, 4};</div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape(4, expectedOutputSizes.data());</div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;    BOOST_CHECK(expectedOutputShape == convolution2dLayer-&gt;<a class="code" href="classarmnn_1_1_convolution2d_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(shapes).at(0));</div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;}</div><div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_aa9e49717ebdb741e8c767741647fc618"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#aa9e49717ebdb741e8c767741647fc618">armnn::Convolution2dDescriptor::m_PadBottom</a></div><div class="ttdeci">uint32_t m_PadBottom</div><div class="ttdoc">Padding bottom value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00444">Descriptors.hpp:444</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">armnn::Convolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00456">Descriptors.hpp:456</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml">armnn::Convolution2dDescriptor</a></div><div class="ttdoc">A Convolution2dDescriptor for the Convolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00408">Descriptors.hpp:408</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_a002bc30e590d78cbb4f4d12171055ca7"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#a002bc30e590d78cbb4f4d12171055ca7">armnn::Convolution2dDescriptor::m_PadRight</a></div><div class="ttdeci">uint32_t m_PadRight</div><div class="ttdoc">Padding right value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00440">Descriptors.hpp:440</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_a302b688d88dd73cde0fb1faef6679907"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#a302b688d88dd73cde0fb1faef6679907">armnn::Convolution2dDescriptor::m_DilationY</a></div><div class="ttdeci">uint32_t m_DilationY</div><div class="ttdoc">Dilation along y axis. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00452">Descriptors.hpp:452</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_a56b51f56cef50cdfa554258eecdab046"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#a56b51f56cef50cdfa554258eecdab046">armnn::Convolution2dDescriptor::m_PadTop</a></div><div class="ttdeci">uint32_t m_PadTop</div><div class="ttdoc">Padding top value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00442">Descriptors.hpp:442</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#afe6a3377c4531315354def9023c8fdda">armnn::Convolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00446">Descriptors.hpp:446</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#ac1fe174bbadfb39a2b636940c2e647c8">armnn::Convolution2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00448">Descriptors.hpp:448</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_aa3c6a77a963a98ccb8ea7b8fd008a8c1"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#aa3c6a77a963a98ccb8ea7b8fd008a8c1">armnn::Convolution2dDescriptor::m_DilationX</a></div><div class="ttdeci">uint32_t m_DilationX</div><div class="ttdoc">Dilation along x axis. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00450">Descriptors.hpp:450</a></div></div>
<div class="ttc" id="classarmnn_1_1_convolution2d_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.xhtml">armnn::Convolution2dLayer</a></div><div class="ttdoc">This layer represents a convolution 2d operation. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.xhtml#l00015">Convolution2dLayer.hpp:15</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div>
<div class="ttc" id="classarmnn_1_1_convolution2d_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::Convolution2dLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8cpp_source.xhtml#l00083">Convolution2dLayer.cpp:83</a></div></div>
<div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_xhtml_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.xhtml#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::Convolution2dDescriptor::m_PadLeft</a></div><div class="ttdeci">uint32_t m_PadLeft</div><div class="ttdoc">Padding left value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00438">Descriptors.hpp:438</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aef8723faea6131aaa1d535a17630df42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef8723faea6131aaa1d535a17630df42">&#9670;&nbsp;</a></span>CreatePreluLayerHelper()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CreatePreluLayerHelper </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;&#160;</td>
          <td class="paramname"><em>graph</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &amp;&#160;</td>
          <td class="paramname"><em>inputShape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &amp;&#160;</td>
          <td class="paramname"><em>alphaShape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &amp;&#160;</td>
          <td class="paramname"><em>outputShape</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00237">237</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, <a class="el" href="_test_utils_8cpp_source.xhtml#l00012">Connect()</a>, and <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>.</p>

<p class="reference">Referenced by <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00259">PreluValidateTensorShapesFromInputsMatchTest()</a>, and <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00270">PreluValidateTensorShapesFromInputsNoMatchTest()</a>.</p>
<div class="fragment"><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;{</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    <span class="comment">// Creates the PReLU layer</span></div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <a class="code" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a>* <span class="keyword">const</span> preluLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_prelu_layer.xhtml">armnn::PreluLayer</a>&gt;(<span class="stringliteral">&quot;prelu&quot;</span>);</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="comment">// Creates extra layers</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <a class="code" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a>* <span class="keyword">const</span> input  = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_input_layer.xhtml">armnn::InputLayer</a>&gt; (0, <span class="stringliteral">&quot;input&quot;</span>);</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <a class="code" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a>* <span class="keyword">const</span> alpha  = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_input_layer.xhtml">armnn::InputLayer</a>&gt; (1, <span class="stringliteral">&quot;alpha&quot;</span>);</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <a class="code" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a>* <span class="keyword">const</span> output = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_output_layer.xhtml">armnn::OutputLayer</a>&gt;(0, <span class="stringliteral">&quot;output&quot;</span>);</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="comment">// Connects up</span></div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputTensorInfo (inputShape,  <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> alphaTensorInfo (alphaShape,  <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputTensorInfo(outputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <a class="code" href="_test_utils_8cpp.xhtml#a0b295acb179f15eb3fb862b32008f782">Connect</a>(input, preluLayer,  inputTensorInfo,  0, 0);</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <a class="code" href="_test_utils_8cpp.xhtml#a0b295acb179f15eb3fb862b32008f782">Connect</a>(alpha, preluLayer,  alphaTensorInfo,  0, 1);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    <a class="code" href="_test_utils_8cpp.xhtml#a0b295acb179f15eb3fb862b32008f782">Connect</a>(preluLayer, output, outputTensorInfo, 0, 0);</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00152">Tensor.hpp:152</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="classarmnn_1_1_output_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_output_layer.xhtml">armnn::OutputLayer</a></div><div class="ttdoc">A layer user-provided data can be bound to (e.g. inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_output_layer_8hpp_source.xhtml#l00013">OutputLayer.hpp:13</a></div></div>
<div class="ttc" id="classarmnn_1_1_input_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_input_layer.xhtml">armnn::InputLayer</a></div><div class="ttdoc">A layer user-provided data can be bound to (e.g. inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_input_layer_8hpp_source.xhtml#l00013">InputLayer.hpp:13</a></div></div>
<div class="ttc" id="classarmnn_1_1_prelu_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_prelu_layer.xhtml">armnn::PreluLayer</a></div><div class="ttdef"><b>Definition:</b> <a href="_prelu_layer_8hpp_source.xhtml#l00014">PreluLayer.hpp:14</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div>
<div class="ttc" id="_test_utils_8cpp_xhtml_a0b295acb179f15eb3fb862b32008f782"><div class="ttname"><a href="_test_utils_8cpp.xhtml#a0b295acb179f15eb3fb862b32008f782">Connect</a></div><div class="ttdeci">void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &amp;tensorInfo, unsigned int fromIndex, unsigned int toIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_test_utils_8cpp_source.xhtml#l00012">TestUtils.cpp:12</a></div></div>
<div class="ttc" id="classarmnn_1_1_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml">armnn::Layer</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00210">Layer.hpp:210</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="adad94ff1ff901704556db7b602d46a05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adad94ff1ff901704556db7b602d46a05">&#9670;&nbsp;</a></span>CreateStackLayerHelper()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CreateStackLayerHelper </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;&#160;</td>
          <td class="paramname"><em>graph</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a> &amp;&#160;</td>
          <td class="paramname"><em>descriptor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>inputShapes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &amp;&#160;</td>
          <td class="paramname"><em>outputShape</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00351">351</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, <a class="el" href="_test_utils_8cpp_source.xhtml#l00012">Connect()</a>, and <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>.</p>

<p class="reference">Referenced by <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00382">StackValidateTensorShapesFromInputsMatchTest()</a>, and <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00408">StackValidateTensorShapesFromInputsNoMatchTest()</a>.</p>
<div class="fragment"><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;{</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="comment">// Creates the Stack layer</span></div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <a class="code" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a>* <span class="keyword">const</span> stackLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_stack_layer.xhtml">armnn::StackLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;stack&quot;</span>);</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="comment">// Creates extra layers</span></div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    std::vector&lt;armnn::Layer*&gt; inputs;</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;inputShapes.size(); ++i)</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    {</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        inputs.push_back(graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_input_layer.xhtml">armnn::InputLayer</a>&gt;(static_cast&lt;int&gt;(i), <span class="stringliteral">&quot;input&quot;</span>));</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    }</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    <a class="code" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a>* <span class="keyword">const</span> output = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_output_layer.xhtml">armnn::OutputLayer</a>&gt;(0, <span class="stringliteral">&quot;output&quot;</span>);</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <span class="comment">// Connects up</span></div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    std::vector&lt;armnn::TensorInfo&gt; inputTensorInfos;</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;inputs.size(); ++i)</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    {</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        inputTensorInfos.push_back(<a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a>(inputShapes[i], <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>));</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    }</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputTensorInfo(outputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;inputs.size(); ++i)</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    {</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        <a class="code" href="_test_utils_8cpp.xhtml#a0b295acb179f15eb3fb862b32008f782">Connect</a>(inputs[i], stackLayer, inputTensorInfos[i], 0, i);</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    }</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <a class="code" href="_test_utils_8cpp.xhtml#a0b295acb179f15eb3fb862b32008f782">Connect</a>(stackLayer, output, outputTensorInfo, 0, 0);</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00152">Tensor.hpp:152</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="classarmnn_1_1_output_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_output_layer.xhtml">armnn::OutputLayer</a></div><div class="ttdoc">A layer user-provided data can be bound to (e.g. inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_output_layer_8hpp_source.xhtml#l00013">OutputLayer.hpp:13</a></div></div>
<div class="ttc" id="classarmnn_1_1_stack_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_stack_layer.xhtml">armnn::StackLayer</a></div><div class="ttdoc">This layer represents a stack operation. </div><div class="ttdef"><b>Definition:</b> <a href="_stack_layer_8hpp_source.xhtml#l00013">StackLayer.hpp:13</a></div></div>
<div class="ttc" id="classarmnn_1_1_input_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_input_layer.xhtml">armnn::InputLayer</a></div><div class="ttdoc">A layer user-provided data can be bound to (e.g. inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_input_layer_8hpp_source.xhtml#l00013">InputLayer.hpp:13</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div>
<div class="ttc" id="_test_utils_8cpp_xhtml_a0b295acb179f15eb3fb862b32008f782"><div class="ttname"><a href="_test_utils_8cpp.xhtml#a0b295acb179f15eb3fb862b32008f782">Connect</a></div><div class="ttdeci">void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &amp;tensorInfo, unsigned int fromIndex, unsigned int toIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_test_utils_8cpp_source.xhtml#l00012">TestUtils.cpp:12</a></div></div>
<div class="ttc" id="classarmnn_1_1_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml">armnn::Layer</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00210">Layer.hpp:210</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0443e325bae088a453cef63002516742"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0443e325bae088a453cef63002516742">&#9670;&nbsp;</a></span>DepthwiseConvolution2dInferOutputShapeTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DepthwiseConvolution2dInferOutputShapeTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00498">498</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, <a class="el" href="_depthwise_convolution2d_layer_8cpp_source.xhtml#l00085">DepthwiseConvolution2dLayer::InferOutputShapes()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00508">DepthwiseConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00502">DepthwiseConvolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00504">DepthwiseConvolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00496">DepthwiseConvolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00490">DepthwiseConvolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00492">DepthwiseConvolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00494">DepthwiseConvolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00498">DepthwiseConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00500">DepthwiseConvolution2dDescriptor::m_StrideY</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>.</p>
<div class="fragment"><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;{</div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;</div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml">armnn::DepthwiseConvolution2dDescriptor</a> descriptor;</div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#aa3c6a77a963a98ccb8ea7b8fd008a8c1">m_DilationX</a> = 3;</div><div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#a302b688d88dd73cde0fb1faef6679907">m_DilationY</a> = 3;</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#a56b51f56cef50cdfa554258eecdab046">m_PadTop</a> = 1;</div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#aa9e49717ebdb741e8c767741647fc618">m_PadBottom</a> = 2;</div><div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a> = 1;</div><div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#a002bc30e590d78cbb4f4d12171055ca7">m_PadRight</a> = 2;</div><div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 2;</div><div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 2;</div><div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a>;</div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    <a class="code" href="classarmnn_1_1_depthwise_convolution2d_layer.xhtml">armnn::DepthwiseConvolution2dLayer</a>* <span class="keyword">const</span> depthwiseConvolution2dLayer =</div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;            graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_depthwise_convolution2d_layer.xhtml">armnn::DepthwiseConvolution2dLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;DepthwiseConvolution2d&quot;</span>);</div><div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;    std::vector&lt;armnn::TensorShape&gt; shapes;</div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; inputSize = {1, 2, 10, 10};</div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> inputShape(4, inputSize.data());</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    shapes.push_back(inputShape);</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; filterSize = { 1, 2, 3, 3};</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> filterShape(4, filterSize.data());</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    shapes.push_back(filterShape);</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;</div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; expectedOutputSizes = {1, 2, 4, 4};</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape(4, expectedOutputSizes.data());</div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;</div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    BOOST_CHECK(expectedOutputShape == depthwiseConvolution2dLayer-&gt;<a class="code" href="classarmnn_1_1_depthwise_convolution2d_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(shapes).at(0));</div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_depthwise_convolution2d_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_depthwise_convolution2d_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::DepthwiseConvolution2dLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_depthwise_convolution2d_layer_8cpp_source.xhtml#l00085">DepthwiseConvolution2dLayer.cpp:85</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_aa9e49717ebdb741e8c767741647fc618"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#aa9e49717ebdb741e8c767741647fc618">armnn::DepthwiseConvolution2dDescriptor::m_PadBottom</a></div><div class="ttdeci">uint32_t m_PadBottom</div><div class="ttdoc">Padding bottom value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00496">Descriptors.hpp:496</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">armnn::DepthwiseConvolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00508">Descriptors.hpp:508</a></div></div>
<div class="ttc" id="classarmnn_1_1_depthwise_convolution2d_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_depthwise_convolution2d_layer.xhtml">armnn::DepthwiseConvolution2dLayer</a></div><div class="ttdoc">This layer represents a depthwise convolution 2d operation. </div><div class="ttdef"><b>Definition:</b> <a href="_depthwise_convolution2d_layer_8hpp_source.xhtml#l00015">DepthwiseConvolution2dLayer.hpp:15</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::DepthwiseConvolution2dDescriptor::m_PadLeft</a></div><div class="ttdeci">uint32_t m_PadLeft</div><div class="ttdoc">Padding left value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00490">Descriptors.hpp:490</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_a302b688d88dd73cde0fb1faef6679907"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#a302b688d88dd73cde0fb1faef6679907">armnn::DepthwiseConvolution2dDescriptor::m_DilationY</a></div><div class="ttdeci">uint32_t m_DilationY</div><div class="ttdoc">Dilation factor value for height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00504">Descriptors.hpp:504</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#afe6a3377c4531315354def9023c8fdda">armnn::DepthwiseConvolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00498">Descriptors.hpp:498</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_aa3c6a77a963a98ccb8ea7b8fd008a8c1"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#aa3c6a77a963a98ccb8ea7b8fd008a8c1">armnn::DepthwiseConvolution2dDescriptor::m_DilationX</a></div><div class="ttdeci">uint32_t m_DilationX</div><div class="ttdoc">Dilation factor value for width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00502">Descriptors.hpp:502</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_a56b51f56cef50cdfa554258eecdab046"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#a56b51f56cef50cdfa554258eecdab046">armnn::DepthwiseConvolution2dDescriptor::m_PadTop</a></div><div class="ttdeci">uint32_t m_PadTop</div><div class="ttdoc">Padding top value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00494">Descriptors.hpp:494</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#ac1fe174bbadfb39a2b636940c2e647c8">armnn::DepthwiseConvolution2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00500">Descriptors.hpp:500</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml">armnn::DepthwiseConvolution2dDescriptor</a></div><div class="ttdoc">A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00460">Descriptors.hpp:460</a></div></div>
<div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_xhtml_a002bc30e590d78cbb4f4d12171055ca7"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.xhtml#a002bc30e590d78cbb4f4d12171055ca7">armnn::DepthwiseConvolution2dDescriptor::m_PadRight</a></div><div class="ttdeci">uint32_t m_PadRight</div><div class="ttdoc">Padding right value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00492">Descriptors.hpp:492</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a58a128d5e6ad6a3d1d393c2cf6b5fa63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58a128d5e6ad6a3d1d393c2cf6b5fa63">&#9670;&nbsp;</a></span>PreluInferOutputShapeAlphaBiggerTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PreluInferOutputShapeAlphaBiggerTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00197">197</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00149">PreluInferOutputShapeImpl()</a>.</p>
<div class="fragment"><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;{</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    {</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        { 4, 1, 2 },   <span class="comment">// Input shape</span></div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        { 5, 4, 3, 1 } <span class="comment">// Alpha shape</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    };</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; expectedOutputShapes</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    {</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        { 5, 4, 3, 2 } <span class="comment">// Output shape</span></div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    };</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a>(inputShapes, outputShapes));</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShapes[0]);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;}</div><div class="ttc" id="_infer_output_tests_8hpp_xhtml_a57ed098f3dd5d1a34fdb3ced4a5d73d8"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a></div><div class="ttdeci">void PreluInferOutputShapeImpl(const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00149">InferOutputTests.hpp:149</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a57ed098f3dd5d1a34fdb3ced4a5d73d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57ed098f3dd5d1a34fdb3ced4a5d73d8">&#9670;&nbsp;</a></span>PreluInferOutputShapeImpl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PreluInferOutputShapeImpl </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>inputShapes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>outputShapes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00149">149</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, and <a class="el" href="_prelu_layer_8cpp_source.xhtml#l00038">PreluLayer::InferOutputShapes()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00197">PreluInferOutputShapeAlphaBiggerTest()</a>, <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00177">PreluInferOutputShapeInputBiggerTest()</a>, <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00217">PreluInferOutputShapeNoMatchTest()</a>, and <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00157">PreluInferOutputShapeSameDimsTest()</a>.</p>
<div class="fragment"><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;{</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <a class="code" href="classarmnn_1_1_prelu_layer.xhtml">armnn::PreluLayer</a>* <span class="keyword">const</span> preluLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_prelu_layer.xhtml">armnn::PreluLayer</a>&gt;(<span class="stringliteral">&quot;prelu&quot;</span>);</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    outputShapes = preluLayer-&gt;<a class="code" href="classarmnn_1_1_prelu_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(inputShapes);</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="classarmnn_1_1_prelu_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_prelu_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::PreluLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_prelu_layer_8cpp_source.xhtml#l00038">PreluLayer.cpp:38</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="classarmnn_1_1_prelu_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_prelu_layer.xhtml">armnn::PreluLayer</a></div><div class="ttdef"><b>Definition:</b> <a href="_prelu_layer_8hpp_source.xhtml#l00014">PreluLayer.hpp:14</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9f353e3601ce891c0e0c2a3008b902e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f353e3601ce891c0e0c2a3008b902e8">&#9670;&nbsp;</a></span>PreluInferOutputShapeInputBiggerTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PreluInferOutputShapeInputBiggerTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00177">177</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00149">PreluInferOutputShapeImpl()</a>.</p>
<div class="fragment"><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;{</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    {</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        { 4, 1, 4, 8 }, <span class="comment">// Input shape</span></div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        { 5, 4, 1 }     <span class="comment">// Alpha shape</span></div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    };</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; expectedOutputShapes</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    {</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        { 4, 5, 4, 8 } <span class="comment">// Output shape</span></div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    };</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a>(inputShapes, outputShapes));</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShapes[0]);</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;}</div><div class="ttc" id="_infer_output_tests_8hpp_xhtml_a57ed098f3dd5d1a34fdb3ced4a5d73d8"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a></div><div class="ttdeci">void PreluInferOutputShapeImpl(const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00149">InferOutputTests.hpp:149</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a29704df6ecb907082856bbb7474f494e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29704df6ecb907082856bbb7474f494e">&#9670;&nbsp;</a></span>PreluInferOutputShapeNoMatchTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PreluInferOutputShapeNoMatchTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00217">217</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00149">PreluInferOutputShapeImpl()</a>.</p>
<div class="fragment"><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;{</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    {</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        { 4, 1, 2 },   <span class="comment">// Input shape</span></div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        { 5, 4, 3, 1 } <span class="comment">// Alpha shape</span></div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    };</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; expectedOutputShapes</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    {</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        { 5, 7, 3, 2 } <span class="comment">// Output shape</span></div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    };</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a>(inputShapes, outputShapes));</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    BOOST_CHECK(outputShapes[0] != expectedOutputShapes[0]);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;}</div><div class="ttc" id="_infer_output_tests_8hpp_xhtml_a57ed098f3dd5d1a34fdb3ced4a5d73d8"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a></div><div class="ttdeci">void PreluInferOutputShapeImpl(const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00149">InferOutputTests.hpp:149</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a23f861a85ba1016450691f7566eecfe2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23f861a85ba1016450691f7566eecfe2">&#9670;&nbsp;</a></span>PreluInferOutputShapeSameDimsTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PreluInferOutputShapeSameDimsTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00157">157</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00149">PreluInferOutputShapeImpl()</a>.</p>
<div class="fragment"><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;{</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    {</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        { 5, 1, 1, 7 }, <span class="comment">// Input shape</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        { 5, 4, 3, 1 }  <span class="comment">// Alpha shape</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    };</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; expectedOutputShapes</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    {</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        { 5, 4, 3, 7 }  <span class="comment">// Output shape</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    };</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a>(inputShapes, outputShapes));</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShapes[0]);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;}</div><div class="ttc" id="_infer_output_tests_8hpp_xhtml_a57ed098f3dd5d1a34fdb3ced4a5d73d8"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a57ed098f3dd5d1a34fdb3ced4a5d73d8">PreluInferOutputShapeImpl</a></div><div class="ttdeci">void PreluInferOutputShapeImpl(const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00149">InferOutputTests.hpp:149</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0e85eb8bf5d03adb0a5d86a37894a9ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e85eb8bf5d03adb0a5d86a37894a9ea">&#9670;&nbsp;</a></span>PreluValidateTensorShapesFromInputsMatchTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PreluValidateTensorShapesFromInputsMatchTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00259">259</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00237">CreatePreluLayerHelper()</a>, and <a class="el" href="_graph_8cpp_source.xhtml#l00529">Graph::InferTensorInfos()</a>.</p>
<div class="fragment"><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;{</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="comment">// Creates the PReLU layer</span></div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <a class="code" href="_infer_output_tests_8hpp.xhtml#aef8723faea6131aaa1d535a17630df42">CreatePreluLayerHelper</a>(graph, { 1, 4, 1, 2 }, { 5, 4, 3, 1 }, { 5, 4, 3, 2 });</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <span class="comment">// Graph::InferTensorInfos calls Layer::ValidateTensorShapesFromInputs</span></div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;}</div><div class="ttc" id="_infer_output_tests_8hpp_xhtml_aef8723faea6131aaa1d535a17630df42"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#aef8723faea6131aaa1d535a17630df42">CreatePreluLayerHelper</a></div><div class="ttdeci">void CreatePreluLayerHelper(armnn::Graph &amp;graph, const armnn::TensorShape &amp;inputShape, const armnn::TensorShape &amp;alphaShape, const armnn::TensorShape &amp;outputShape)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00237">InferOutputTests.hpp:237</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a2ceda8d369e861997d558fac74d79c33"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a2ceda8d369e861997d558fac74d79c33">armnn::Graph::InferTensorInfos</a></div><div class="ttdeci">void InferTensorInfos()</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8cpp_source.xhtml#l00529">Graph.cpp:529</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a88b77508b2bd69bcec713ef1ab436b8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88b77508b2bd69bcec713ef1ab436b8c">&#9670;&nbsp;</a></span>PreluValidateTensorShapesFromInputsNoMatchTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PreluValidateTensorShapesFromInputsNoMatchTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00270">270</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00237">CreatePreluLayerHelper()</a>, and <a class="el" href="_graph_8cpp_source.xhtml#l00529">Graph::InferTensorInfos()</a>.</p>
<div class="fragment"><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;{</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="comment">// Creates the PReLU layer</span></div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <a class="code" href="_infer_output_tests_8hpp.xhtml#aef8723faea6131aaa1d535a17630df42">CreatePreluLayerHelper</a>(graph, { 1, 4, 1, 2 }, { 5, 4, 3, 1 }, { 5, 7, 3, 2 });</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="comment">// Graph::InferTensorInfos calls Layer::ValidateTensorShapesFromInputs</span></div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    BOOST_CHECK_THROW(graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>(), <a class="code" href="classarmnn_1_1_layer_validation_exception.xhtml">armnn::LayerValidationException</a>);</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;}</div><div class="ttc" id="_infer_output_tests_8hpp_xhtml_aef8723faea6131aaa1d535a17630df42"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#aef8723faea6131aaa1d535a17630df42">CreatePreluLayerHelper</a></div><div class="ttdeci">void CreatePreluLayerHelper(armnn::Graph &amp;graph, const armnn::TensorShape &amp;inputShape, const armnn::TensorShape &amp;alphaShape, const armnn::TensorShape &amp;outputShape)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00237">InferOutputTests.hpp:237</a></div></div>
<div class="ttc" id="classarmnn_1_1_layer_validation_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_layer_validation_exception.xhtml">armnn::LayerValidationException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00105">Exceptions.hpp:105</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a2ceda8d369e861997d558fac74d79c33"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a2ceda8d369e861997d558fac74d79c33">armnn::Graph::InferTensorInfos</a></div><div class="ttdeci">void InferTensorInfos()</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8cpp_source.xhtml#l00529">Graph.cpp:529</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a07bb1afd2b46d4bf83bab05ef89fc154"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07bb1afd2b46d4bf83bab05ef89fc154">&#9670;&nbsp;</a></span>QLstmInferOutputShapeImpl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QLstmInferOutputShapeImpl </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structarmnn_1_1_q_lstm_descriptor.xhtml">armnn::QLstmDescriptor</a>&#160;</td>
          <td class="paramname"><em>descriptor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>inputShapes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>outputShapes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00532">532</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, and <a class="el" href="_q_lstm_layer_8cpp_source.xhtml#l00153">QLstmLayer::InferOutputShapes()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00541">QLstmInferOutputShapeTest()</a>.</p>
<div class="fragment"><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;{</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    <a class="code" href="classarmnn_1_1_q_lstm_layer.xhtml">armnn::QLstmLayer</a>* <span class="keyword">const</span> qLstmLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_q_lstm_layer.xhtml">armnn::QLstmLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;qLstm&quot;</span>);</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    outputShapes = qLstmLayer-&gt;<a class="code" href="classarmnn_1_1_q_lstm_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(inputShapes);</div><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="classarmnn_1_1_q_lstm_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_q_lstm_layer.xhtml">armnn::QLstmLayer</a></div><div class="ttdoc">This layer represents a QLstm operation. </div><div class="ttdef"><b>Definition:</b> <a href="_q_lstm_layer_8hpp_source.xhtml#l00079">QLstmLayer.hpp:79</a></div></div>
<div class="ttc" id="classarmnn_1_1_q_lstm_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_q_lstm_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::QLstmLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_q_lstm_layer_8cpp_source.xhtml#l00153">QLstmLayer.cpp:153</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9c7ba1f02c1532cf22a54f624aa6fd4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c7ba1f02c1532cf22a54f624aa6fd4e">&#9670;&nbsp;</a></span>QLstmInferOutputShapeTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QLstmInferOutputShapeTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00541">541</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_descriptors_8hpp_source.xhtml#l01191">QLstmDescriptor::m_CifgEnabled</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01193">QLstmDescriptor::m_PeepholeEnabled</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01195">QLstmDescriptor::m_ProjectionEnabled</a>, and <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00532">QLstmInferOutputShapeImpl()</a>.</p>
<div class="fragment"><div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;{</div><div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    <a class="code" href="structarmnn_1_1_q_lstm_descriptor.xhtml">armnn::QLstmDescriptor</a> descriptor;</div><div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_q_lstm_descriptor.xhtml#a2837b4396f20c956952d1a7286cab5f8">m_PeepholeEnabled</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_q_lstm_descriptor.xhtml#ad474e5c51a0b194ef32e812b86c0cbdb">m_CifgEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_q_lstm_descriptor.xhtml#a6c9de81fc65b3c4924cab11907075a17">m_ProjectionEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;</div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;    <span class="comment">// Input shapes</span></div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; inputShape{ 2, 5 };</div><div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; previousOutputInShape{ 2, 4 };</div><div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; previousCellStateInShape{ 2, 4 };</div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> inputTensorShape(2, inputShape.data());</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> previousOutputInTensorShape(2, previousOutputInShape.data());</div><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> previousCellStateInTensorShape(2, previousCellStateInShape.data());</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    std::vector&lt;armnn::TensorShape&gt; inShapes</div><div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;    {</div><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;        inputTensorShape,</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;        previousOutputInTensorShape,</div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;        previousCellStateInTensorShape</div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    };</div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;</div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;    <span class="comment">// Output shapes</span></div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; outputStateOutShape{ 2, 4 };</div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; cellStateOutShape{ 2, 4 };</div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; outputShape{ 2, 4 };</div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> outputStateOutTensorShape(2, outputShape.data());</div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> cellStateOutTensorShape(2, cellStateOutShape.data());</div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> outputTensorShape(2, outputShape.data());</div><div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;</div><div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;    std::vector&lt;armnn::TensorShape&gt; expectedOutShapes</div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;    {</div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        outputStateOutTensorShape,</div><div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        cellStateOutTensorShape,</div><div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;        outputTensorShape</div><div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    };</div><div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;</div><div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    std::vector&lt;armnn::TensorShape&gt; actualOutShapes;</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a07bb1afd2b46d4bf83bab05ef89fc154">QLstmInferOutputShapeImpl</a>(descriptor, inShapes, actualOutShapes));</div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;</div><div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    BOOST_CHECK(actualOutShapes.size() == 3);</div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;    BOOST_CHECK(expectedOutShapes[0] == actualOutShapes[0]);</div><div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;    BOOST_CHECK(expectedOutShapes[1] == actualOutShapes[1]);</div><div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;    BOOST_CHECK(expectedOutShapes[2] == actualOutShapes[2]);</div><div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;}</div><div class="ttc" id="structarmnn_1_1_q_lstm_descriptor_xhtml_a2837b4396f20c956952d1a7286cab5f8"><div class="ttname"><a href="structarmnn_1_1_q_lstm_descriptor.xhtml#a2837b4396f20c956952d1a7286cab5f8">armnn::QLstmDescriptor::m_PeepholeEnabled</a></div><div class="ttdeci">bool m_PeepholeEnabled</div><div class="ttdoc">Enable/disable peephole. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01193">Descriptors.hpp:1193</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_q_lstm_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_q_lstm_descriptor.xhtml">armnn::QLstmDescriptor</a></div><div class="ttdoc">A QLstmDescriptor for the QLstmLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01153">Descriptors.hpp:1153</a></div></div>
<div class="ttc" id="_infer_output_tests_8hpp_xhtml_a07bb1afd2b46d4bf83bab05ef89fc154"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a07bb1afd2b46d4bf83bab05ef89fc154">QLstmInferOutputShapeImpl</a></div><div class="ttdeci">void QLstmInferOutputShapeImpl(const armnn::QLstmDescriptor descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00532">InferOutputTests.hpp:532</a></div></div>
<div class="ttc" id="structarmnn_1_1_q_lstm_descriptor_xhtml_a6c9de81fc65b3c4924cab11907075a17"><div class="ttname"><a href="structarmnn_1_1_q_lstm_descriptor.xhtml#a6c9de81fc65b3c4924cab11907075a17">armnn::QLstmDescriptor::m_ProjectionEnabled</a></div><div class="ttdeci">bool m_ProjectionEnabled</div><div class="ttdoc">Enable/disable the projection layer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01195">Descriptors.hpp:1195</a></div></div>
<div class="ttc" id="structarmnn_1_1_q_lstm_descriptor_xhtml_ad474e5c51a0b194ef32e812b86c0cbdb"><div class="ttname"><a href="structarmnn_1_1_q_lstm_descriptor.xhtml#ad474e5c51a0b194ef32e812b86c0cbdb">armnn::QLstmDescriptor::m_CifgEnabled</a></div><div class="ttdeci">bool m_CifgEnabled</div><div class="ttdoc">Enable/disable CIFG (coupled input &amp; forget gate). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01191">Descriptors.hpp:1191</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a4a13b517c2553b8173c26d286cba4a13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a13b517c2553b8173c26d286cba4a13">&#9670;&nbsp;</a></span>QuantizedLstmInferOutputShapeImpl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QuantizedLstmInferOutputShapeImpl </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>inputShapes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>outputShapes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00589">589</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, and <a class="el" href="_quantized_lstm_layer_8cpp_source.xhtml#l00081">QuantizedLstmLayer::InferOutputShapes()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00597">QuantizedLstmInferOutputShapeTest()</a>.</p>
<div class="fragment"><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;{</div><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;    <a class="code" href="classarmnn_1_1_quantized_lstm_layer.xhtml">armnn::QuantizedLstmLayer</a>* <span class="keyword">const</span> quantizedLstmLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_quantized_lstm_layer.xhtml">armnn::QuantizedLstmLayer</a>&gt;(<span class="stringliteral">&quot;quantizedLstm&quot;</span>);</div><div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    outputShapes = quantizedLstmLayer-&gt;<a class="code" href="classarmnn_1_1_quantized_lstm_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(inputShapes);</div><div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="classarmnn_1_1_quantized_lstm_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_quantized_lstm_layer.xhtml">armnn::QuantizedLstmLayer</a></div><div class="ttdoc">This layer represents a QuantizedLstm operation. </div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_layer_8hpp_source.xhtml#l00045">QuantizedLstmLayer.hpp:45</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="classarmnn_1_1_quantized_lstm_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_quantized_lstm_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::QuantizedLstmLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_layer_8cpp_source.xhtml#l00081">QuantizedLstmLayer.cpp:81</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a4e21fe15b65644bb6a7beb25fbd04f14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e21fe15b65644bb6a7beb25fbd04f14">&#9670;&nbsp;</a></span>QuantizedLstmInferOutputShapeTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QuantizedLstmInferOutputShapeTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00597">597</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00589">QuantizedLstmInferOutputShapeImpl()</a>.</p>
<div class="fragment"><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;{</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    <span class="comment">// Input shapes</span></div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; inputShape{ 2, 5 };</div><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; previousCellStateInShape{ 2, 10 };</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; previousOutputInShape{ 2, 10 };</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> inputTensorShape(2, inputShape.data());</div><div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> previousCellStateInTensorShape(2, previousCellStateInShape.data());</div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> previousOutputInTensorShape(2, previousOutputInShape.data());</div><div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;</div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;    std::vector&lt;armnn::TensorShape&gt; inShapes</div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;    {</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;        inputTensorShape,</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;        previousCellStateInTensorShape,</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;        previousOutputInTensorShape</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    };</div><div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;</div><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;    <span class="comment">// Output shapes</span></div><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; cellStateOutShape{ 2, 10 };</div><div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; outputShape{ 2, 10 };</div><div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> cellStateOutTensorShape(2, cellStateOutShape.data());</div><div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> outputTensorShape(2, outputShape.data());</div><div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;</div><div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;    std::vector&lt;armnn::TensorShape&gt; expectedOutShapes</div><div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;    {</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        cellStateOutTensorShape,</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;        outputTensorShape</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;    };</div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;</div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;    std::vector&lt;armnn::TensorShape&gt; actualOutShapes;</div><div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a4a13b517c2553b8173c26d286cba4a13">QuantizedLstmInferOutputShapeImpl</a>(inShapes, actualOutShapes));</div><div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;</div><div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;    BOOST_CHECK(actualOutShapes.size() == 2);</div><div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    BOOST_CHECK(expectedOutShapes[0] == actualOutShapes[0]);</div><div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;    BOOST_CHECK(expectedOutShapes[1] == actualOutShapes[1]);</div><div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="_infer_output_tests_8hpp_xhtml_a4a13b517c2553b8173c26d286cba4a13"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a4a13b517c2553b8173c26d286cba4a13">QuantizedLstmInferOutputShapeImpl</a></div><div class="ttdeci">void QuantizedLstmInferOutputShapeImpl(const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00589">InferOutputTests.hpp:589</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aee284f22b73268f00e5e9f57bc17c525"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee284f22b73268f00e5e9f57bc17c525">&#9670;&nbsp;</a></span>SpaceToDepthInferOutputShapeTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SpaceToDepthInferOutputShapeTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00127">127</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, <a class="el" href="_space_to_depth_layer_8cpp_source.xhtml#l00044">SpaceToDepthLayer::InferOutputShapes()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00901">SpaceToDepthDescriptor::m_BlockSize</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00904">SpaceToDepthDescriptor::m_DataLayout</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p>
<div class="fragment"><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;{</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="structarmnn_1_1_space_to_depth_descriptor.xhtml">armnn::SpaceToDepthDescriptor</a> descriptor;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_space_to_depth_descriptor.xhtml#a6c6b8957f1e176867e5fb05b1a1a1486">m_BlockSize</a>  = 2;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_space_to_depth_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <a class="code" href="classarmnn_1_1_space_to_depth_layer.xhtml">armnn::SpaceToDepthLayer</a>* <span class="keyword">const</span> spaceToDepthLayer =</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_space_to_depth_layer.xhtml">armnn::SpaceToDepthLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;spaceToDepth&quot;</span>);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    std::vector&lt;armnn::TensorShape&gt; shapes;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; dimSizes{ 1, 16, 8, 3 };</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> shape(4, dimSizes.data());</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    shapes.push_back(shape);</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; expectedDimSizes{ 1, 8, 4, 12 };</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedShape(4, expectedDimSizes.data());</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    BOOST_CHECK(expectedShape == spaceToDepthLayer-&gt;<a class="code" href="classarmnn_1_1_space_to_depth_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(shapes).at(0));</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="classarmnn_1_1_space_to_depth_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_space_to_depth_layer.xhtml">armnn::SpaceToDepthLayer</a></div><div class="ttdoc">This layer represents a SpaceToDepth operation. </div><div class="ttdef"><b>Definition:</b> <a href="_space_to_depth_layer_8hpp_source.xhtml#l00014">SpaceToDepthLayer.hpp:14</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_space_to_depth_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_space_to_depth_descriptor.xhtml">armnn::SpaceToDepthDescriptor</a></div><div class="ttdoc">A SpaceToDepthDescriptor for the SpaceToDepthLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00884">Descriptors.hpp:884</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_space_to_depth_descriptor_xhtml_a6c6b8957f1e176867e5fb05b1a1a1486"><div class="ttname"><a href="structarmnn_1_1_space_to_depth_descriptor.xhtml#a6c6b8957f1e176867e5fb05b1a1a1486">armnn::SpaceToDepthDescriptor::m_BlockSize</a></div><div class="ttdeci">unsigned int m_BlockSize</div><div class="ttdoc">Scalar specifying the input block size. It must be &gt;= 1. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00901">Descriptors.hpp:901</a></div></div>
<div class="ttc" id="structarmnn_1_1_space_to_depth_descriptor_xhtml_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_space_to_depth_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">armnn::SpaceToDepthDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00904">Descriptors.hpp:904</a></div></div>
<div class="ttc" id="classarmnn_1_1_space_to_depth_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_space_to_depth_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::SpaceToDepthLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_space_to_depth_layer_8cpp_source.xhtml#l00044">SpaceToDepthLayer.cpp:44</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="abd1bb9e1b7783eccf8dca20d455064a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd1bb9e1b7783eccf8dca20d455064a3">&#9670;&nbsp;</a></span>StackInferOutputShapeFromInputsMatchTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StackInferOutputShapeFromInputsMatchTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00290">290</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_descriptors_8hpp_source.xhtml#l01046">StackDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01050">StackDescriptor::m_InputShape</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01048">StackDescriptor::m_NumInputs</a>, and <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00281">StackInferOutputShapeImpl()</a>.</p>
<div class="fragment"><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;{</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <a class="code" href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a> descriptor;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#ab218de7805899c8412d75d1fd1d846d2">m_Axis</a> = 1;</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#aed6086070440ceb94129bef06f70173f">m_NumInputs</a> = 3;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#a2bea87b470268bb0b73457c3733dbc04">m_InputShape</a> = <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    (</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        { 4, 2 }  <span class="comment">// Defined input shape</span></div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    );</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    {</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        { 4, 2 }, <span class="comment">// Actual input shapes</span></div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        { 4, 2 },</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;        { 4, 2 }</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    };</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a2985b2f0f61fcad5f75e5119e7b9916e">StackInferOutputShapeImpl</a>(descriptor, inputShapes, outputShapes));</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    (</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        { 4, 3, 2 }</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    );</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShape);</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;}</div><div class="ttc" id="_infer_output_tests_8hpp_xhtml_a2985b2f0f61fcad5f75e5119e7b9916e"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a2985b2f0f61fcad5f75e5119e7b9916e">StackInferOutputShapeImpl</a></div><div class="ttdeci">void StackInferOutputShapeImpl(const armnn::StackDescriptor descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00281">InferOutputTests.hpp:281</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_ab218de7805899c8412d75d1fd1d846d2"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#ab218de7805899c8412d75d1fd1d846d2">armnn::StackDescriptor::m_Axis</a></div><div class="ttdeci">uint32_t m_Axis</div><div class="ttdoc">0-based axis along which to stack the input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01046">Descriptors.hpp:1046</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_a2bea87b470268bb0b73457c3733dbc04"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#a2bea87b470268bb0b73457c3733dbc04">armnn::StackDescriptor::m_InputShape</a></div><div class="ttdeci">TensorShape m_InputShape</div><div class="ttdoc">Required shape of all input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01050">Descriptors.hpp:1050</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a></div><div class="ttdoc">A StackDescriptor for the StackLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01024">Descriptors.hpp:1024</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_aed6086070440ceb94129bef06f70173f"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#aed6086070440ceb94129bef06f70173f">armnn::StackDescriptor::m_NumInputs</a></div><div class="ttdeci">uint32_t m_NumInputs</div><div class="ttdoc">Number of input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01048">Descriptors.hpp:1048</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9195d0488c41fb4a5967f8a2c5bdb6e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9195d0488c41fb4a5967f8a2c5bdb6e9">&#9670;&nbsp;</a></span>StackInferOutputShapeFromInputsNoMatchTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StackInferOutputShapeFromInputsNoMatchTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00320">320</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_descriptors_8hpp_source.xhtml#l01046">StackDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01050">StackDescriptor::m_InputShape</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01048">StackDescriptor::m_NumInputs</a>, and <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00281">StackInferOutputShapeImpl()</a>.</p>
<div class="fragment"><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;{</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    <a class="code" href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a> descriptor;</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#ab218de7805899c8412d75d1fd1d846d2">m_Axis</a> = 1;</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#aed6086070440ceb94129bef06f70173f">m_NumInputs</a> = 3;</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#a2bea87b470268bb0b73457c3733dbc04">m_InputShape</a> = <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    (</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        { 4, 2 }  <span class="comment">// Defined input shape</span></div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    );</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    {</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        { 4, 2 }, <span class="comment">// Actual input shapes</span></div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;        { 4, 5 }, <span class="comment">// Incorrectly shaped input tensor</span></div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;        { 4, 2 }</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    };</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <span class="comment">// Output shape is inferred from the descriptor, so should still be correct despite mismatching input shapes</span></div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    std::vector&lt;armnn::TensorShape&gt; outputShapes;</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    BOOST_CHECK_NO_THROW(<a class="code" href="_infer_output_tests_8hpp.xhtml#a2985b2f0f61fcad5f75e5119e7b9916e">StackInferOutputShapeImpl</a>(descriptor, inputShapes, outputShapes));</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    (</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        { 4, 3, 2 }</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    );</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    BOOST_CHECK(outputShapes.size() == 1);</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    BOOST_CHECK(outputShapes[0] == expectedOutputShape);</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;}</div><div class="ttc" id="_infer_output_tests_8hpp_xhtml_a2985b2f0f61fcad5f75e5119e7b9916e"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#a2985b2f0f61fcad5f75e5119e7b9916e">StackInferOutputShapeImpl</a></div><div class="ttdeci">void StackInferOutputShapeImpl(const armnn::StackDescriptor descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, std::vector&lt; armnn::TensorShape &gt; &amp;outputShapes)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00281">InferOutputTests.hpp:281</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_ab218de7805899c8412d75d1fd1d846d2"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#ab218de7805899c8412d75d1fd1d846d2">armnn::StackDescriptor::m_Axis</a></div><div class="ttdeci">uint32_t m_Axis</div><div class="ttdoc">0-based axis along which to stack the input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01046">Descriptors.hpp:1046</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_a2bea87b470268bb0b73457c3733dbc04"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#a2bea87b470268bb0b73457c3733dbc04">armnn::StackDescriptor::m_InputShape</a></div><div class="ttdeci">TensorShape m_InputShape</div><div class="ttdoc">Required shape of all input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01050">Descriptors.hpp:1050</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a></div><div class="ttdoc">A StackDescriptor for the StackLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01024">Descriptors.hpp:1024</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_aed6086070440ceb94129bef06f70173f"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#aed6086070440ceb94129bef06f70173f">armnn::StackDescriptor::m_NumInputs</a></div><div class="ttdeci">uint32_t m_NumInputs</div><div class="ttdoc">Number of input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01048">Descriptors.hpp:1048</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a2985b2f0f61fcad5f75e5119e7b9916e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2985b2f0f61fcad5f75e5119e7b9916e">&#9670;&nbsp;</a></span>StackInferOutputShapeImpl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StackInferOutputShapeImpl </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a>&#160;</td>
          <td class="paramname"><em>descriptor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>inputShapes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>outputShapes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00281">281</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, and <a class="el" href="_stack_layer_8cpp_source.xhtml#l00035">StackLayer::InferOutputShapes()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00290">StackInferOutputShapeFromInputsMatchTest()</a>, and <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00320">StackInferOutputShapeFromInputsNoMatchTest()</a>.</p>
<div class="fragment"><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;{</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <a class="code" href="classarmnn_1_1_stack_layer.xhtml">armnn::StackLayer</a>* <span class="keyword">const</span> stackLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_stack_layer.xhtml">armnn::StackLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;stack&quot;</span>);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    outputShapes = stackLayer-&gt;<a class="code" href="classarmnn_1_1_stack_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(inputShapes);</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_stack_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_stack_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::StackLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_stack_layer_8cpp_source.xhtml#l00035">StackLayer.cpp:35</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="classarmnn_1_1_stack_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_stack_layer.xhtml">armnn::StackLayer</a></div><div class="ttdoc">This layer represents a stack operation. </div><div class="ttdef"><b>Definition:</b> <a href="_stack_layer_8hpp_source.xhtml#l00013">StackLayer.hpp:13</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9a2a494f5a3ff1885fa9d62c6c500e52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a2a494f5a3ff1885fa9d62c6c500e52">&#9670;&nbsp;</a></span>StackValidateTensorShapesFromInputsMatchTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StackValidateTensorShapesFromInputsMatchTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00382">382</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00351">CreateStackLayerHelper()</a>, <a class="el" href="_graph_8cpp_source.xhtml#l00529">Graph::InferTensorInfos()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01046">StackDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01050">StackDescriptor::m_InputShape</a>, and <a class="el" href="_descriptors_8hpp_source.xhtml#l01048">StackDescriptor::m_NumInputs</a>.</p>
<div class="fragment"><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;{</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <a class="code" href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a> descriptor;</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#ab218de7805899c8412d75d1fd1d846d2">m_Axis</a> = 0;</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#aed6086070440ceb94129bef06f70173f">m_NumInputs</a> = 3;</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#a2bea87b470268bb0b73457c3733dbc04">m_InputShape</a> = <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    (</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        { 2, 5 }  <span class="comment">// Defined input shape</span></div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    );</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    {</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        { 2, 5 }, <span class="comment">// Actual input shapes</span></div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        { 2, 5 },</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;        { 2, 5 }</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    };</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    <span class="comment">// Creates the Stack layer</span></div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    <a class="code" href="_infer_output_tests_8hpp.xhtml#adad94ff1ff901704556db7b602d46a05">CreateStackLayerHelper</a>(graph, descriptor, inputShapes, { 3, 2, 5 });</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;    <span class="comment">// Graph::InferTensorInfos calls Layer::ValidateTensorShapesFromInputs</span></div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;    BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;}</div><div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_ab218de7805899c8412d75d1fd1d846d2"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#ab218de7805899c8412d75d1fd1d846d2">armnn::StackDescriptor::m_Axis</a></div><div class="ttdeci">uint32_t m_Axis</div><div class="ttdoc">0-based axis along which to stack the input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01046">Descriptors.hpp:1046</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_a2bea87b470268bb0b73457c3733dbc04"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#a2bea87b470268bb0b73457c3733dbc04">armnn::StackDescriptor::m_InputShape</a></div><div class="ttdeci">TensorShape m_InputShape</div><div class="ttdoc">Required shape of all input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01050">Descriptors.hpp:1050</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a></div><div class="ttdoc">A StackDescriptor for the StackLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01024">Descriptors.hpp:1024</a></div></div>
<div class="ttc" id="_infer_output_tests_8hpp_xhtml_adad94ff1ff901704556db7b602d46a05"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#adad94ff1ff901704556db7b602d46a05">CreateStackLayerHelper</a></div><div class="ttdeci">void CreateStackLayerHelper(armnn::Graph &amp;graph, const armnn::StackDescriptor &amp;descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, const armnn::TensorShape &amp;outputShape)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00351">InferOutputTests.hpp:351</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_aed6086070440ceb94129bef06f70173f"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#aed6086070440ceb94129bef06f70173f">armnn::StackDescriptor::m_NumInputs</a></div><div class="ttdeci">uint32_t m_NumInputs</div><div class="ttdoc">Number of input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01048">Descriptors.hpp:1048</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a2ceda8d369e861997d558fac74d79c33"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a2ceda8d369e861997d558fac74d79c33">armnn::Graph::InferTensorInfos</a></div><div class="ttdeci">void InferTensorInfos()</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8cpp_source.xhtml#l00529">Graph.cpp:529</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="af061819a84da0c72056b016d02d239f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af061819a84da0c72056b016d02d239f3">&#9670;&nbsp;</a></span>StackValidateTensorShapesFromInputsNoMatchTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StackValidateTensorShapesFromInputsNoMatchTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00408">408</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00351">CreateStackLayerHelper()</a>, <a class="el" href="_graph_8cpp_source.xhtml#l00529">Graph::InferTensorInfos()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01046">StackDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01050">StackDescriptor::m_InputShape</a>, and <a class="el" href="_descriptors_8hpp_source.xhtml#l01048">StackDescriptor::m_NumInputs</a>.</p>
<div class="fragment"><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;{</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    <a class="code" href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a> descriptor;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#ab218de7805899c8412d75d1fd1d846d2">m_Axis</a> = 0;</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#aed6086070440ceb94129bef06f70173f">m_NumInputs</a> = 3;</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.xhtml#a2bea87b470268bb0b73457c3733dbc04">m_InputShape</a> = <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    (</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        { 2, 5 }  <span class="comment">// Defined input shape</span></div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    );</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    <span class="keyword">const</span> std::vector&lt;armnn::TensorShape&gt; inputShapes</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    {</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        { 2, 5 }, <span class="comment">// Actual input shapes</span></div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        { 2, 2 }, <span class="comment">// Incorrectly shaped input tensor</span></div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        { 2, 5 }</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    };</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <span class="comment">// Creates the Stack layer</span></div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    <a class="code" href="_infer_output_tests_8hpp.xhtml#adad94ff1ff901704556db7b602d46a05">CreateStackLayerHelper</a>(graph, descriptor, inputShapes, { 3, 2, 5 });</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    <span class="comment">// Graph::InferTensorInfos calls Layer::ValidateTensorShapesFromInputs</span></div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    BOOST_CHECK_THROW(graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>(), <a class="code" href="classarmnn_1_1_layer_validation_exception.xhtml">armnn::LayerValidationException</a>);</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;}</div><div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_ab218de7805899c8412d75d1fd1d846d2"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#ab218de7805899c8412d75d1fd1d846d2">armnn::StackDescriptor::m_Axis</a></div><div class="ttdeci">uint32_t m_Axis</div><div class="ttdoc">0-based axis along which to stack the input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01046">Descriptors.hpp:1046</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_a2bea87b470268bb0b73457c3733dbc04"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#a2bea87b470268bb0b73457c3733dbc04">armnn::StackDescriptor::m_InputShape</a></div><div class="ttdeci">TensorShape m_InputShape</div><div class="ttdoc">Required shape of all input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01050">Descriptors.hpp:1050</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml">armnn::StackDescriptor</a></div><div class="ttdoc">A StackDescriptor for the StackLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01024">Descriptors.hpp:1024</a></div></div>
<div class="ttc" id="_infer_output_tests_8hpp_xhtml_adad94ff1ff901704556db7b602d46a05"><div class="ttname"><a href="_infer_output_tests_8hpp.xhtml#adad94ff1ff901704556db7b602d46a05">CreateStackLayerHelper</a></div><div class="ttdeci">void CreateStackLayerHelper(armnn::Graph &amp;graph, const armnn::StackDescriptor &amp;descriptor, const std::vector&lt; armnn::TensorShape &gt; &amp;inputShapes, const armnn::TensorShape &amp;outputShape)</div><div class="ttdef"><b>Definition:</b> <a href="_infer_output_tests_8hpp_source.xhtml#l00351">InferOutputTests.hpp:351</a></div></div>
<div class="ttc" id="classarmnn_1_1_layer_validation_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_layer_validation_exception.xhtml">armnn::LayerValidationException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00105">Exceptions.hpp:105</a></div></div>
<div class="ttc" id="structarmnn_1_1_stack_descriptor_xhtml_aed6086070440ceb94129bef06f70173f"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.xhtml#aed6086070440ceb94129bef06f70173f">armnn::StackDescriptor::m_NumInputs</a></div><div class="ttdeci">uint32_t m_NumInputs</div><div class="ttdoc">Number of input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01048">Descriptors.hpp:1048</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a2ceda8d369e861997d558fac74d79c33"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a2ceda8d369e861997d558fac74d79c33">armnn::Graph::InferTensorInfos</a></div><div class="ttdeci">void InferTensorInfos()</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8cpp_source.xhtml#l00529">Graph.cpp:529</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="af74f1701b2b4a9313a682ab673edf2f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af74f1701b2b4a9313a682ab673edf2f5">&#9670;&nbsp;</a></span>TransposeConvolution2dInferOutputShapeTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TransposeConvolution2dInferOutputShapeTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00467">467</a> of file <a class="el" href="_infer_output_tests_8hpp_source.xhtml">InferOutputTests.hpp</a>.</p>

<p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00402">Graph::AddLayer()</a>, <a class="el" href="_transpose_convolution2d_layer_8cpp_source.xhtml#l00057">TransposeConvolution2dLayer::InferOutputShapes()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01256">TransposeConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01248">TransposeConvolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01242">TransposeConvolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01244">TransposeConvolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01246">TransposeConvolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01250">TransposeConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01252">TransposeConvolution2dDescriptor::m_StrideY</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>.</p>
<div class="fragment"><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;{</div><div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;</div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    <a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml">armnn::TransposeConvolution2dDescriptor</a> descriptor;</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#a56b51f56cef50cdfa554258eecdab046">m_PadTop</a> = 0;</div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#aa9e49717ebdb741e8c767741647fc618">m_PadBottom</a> = 1;</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a> = 0;</div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#a002bc30e590d78cbb4f4d12171055ca7">m_PadRight</a> = 1;</div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 2;</div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 2;</div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;    descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a>;</div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;</div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    <a class="code" href="classarmnn_1_1_transpose_convolution2d_layer.xhtml">armnn::TransposeConvolution2dLayer</a>* <span class="keyword">const</span> transposeConvolution2dLayer =</div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;            graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a>&lt;<a class="code" href="classarmnn_1_1_transpose_convolution2d_layer.xhtml">armnn::TransposeConvolution2dLayer</a>&gt;(descriptor, <span class="stringliteral">&quot;TransposeConvolution2d&quot;</span>);</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    std::vector&lt;armnn::TensorShape&gt; shapes;</div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; inputSize = {1, 2, 3, 3};</div><div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> inputShape(4, inputSize.data());</div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    shapes.push_back(inputShape);</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; filterSize = { 1, 2, 3, 3};</div><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> filterShape(4, filterSize.data());</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    shapes.push_back(filterShape);</div><div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;</div><div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <span class="keyword">const</span> std::vector&lt;unsigned int&gt; expectedOutputSizes = {1, 1, 6, 6};</div><div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> expectedOutputShape(4, expectedOutputSizes.data());</div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;</div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    BOOST_CHECK(expectedOutputShape == transposeConvolution2dLayer-&gt;<a class="code" href="classarmnn_1_1_transpose_convolution2d_layer.xhtml#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(shapes).at(0));</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_transpose_convolution2d_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_transpose_convolution2d_layer.xhtml">armnn::TransposeConvolution2dLayer</a></div><div class="ttdoc">This layer represents a 2D transpose convolution operation. </div><div class="ttdef"><b>Definition:</b> <a href="_transpose_convolution2d_layer_8hpp_source.xhtml#l00015">TransposeConvolution2dLayer.hpp:15</a></div></div>
<div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml">armnn::TransposeConvolution2dDescriptor</a></div><div class="ttdoc">A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01213">Descriptors.hpp:1213</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &amp;&amp;... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00402">Graph.hpp:402</a></div></div>
<div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_xhtml_aa9e49717ebdb741e8c767741647fc618"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#aa9e49717ebdb741e8c767741647fc618">armnn::TransposeConvolution2dDescriptor::m_PadBottom</a></div><div class="ttdeci">uint32_t m_PadBottom</div><div class="ttdoc">Padding bottom value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01248">Descriptors.hpp:1248</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_xhtml_a56b51f56cef50cdfa554258eecdab046"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#a56b51f56cef50cdfa554258eecdab046">armnn::TransposeConvolution2dDescriptor::m_PadTop</a></div><div class="ttdeci">uint32_t m_PadTop</div><div class="ttdoc">Padding top value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01246">Descriptors.hpp:1246</a></div></div>
<div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_xhtml_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">armnn::TransposeConvolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01256">Descriptors.hpp:1256</a></div></div>
<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
<div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_xhtml_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::TransposeConvolution2dDescriptor::m_PadLeft</a></div><div class="ttdeci">uint32_t m_PadLeft</div><div class="ttdoc">Padding left value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01242">Descriptors.hpp:1242</a></div></div>
<div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_xhtml_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#afe6a3377c4531315354def9023c8fdda">armnn::TransposeConvolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01250">Descriptors.hpp:1250</a></div></div>
<div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_xhtml_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#ac1fe174bbadfb39a2b636940c2e647c8">armnn::TransposeConvolution2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01252">Descriptors.hpp:1252</a></div></div>
<div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_xhtml_a002bc30e590d78cbb4f4d12171055ca7"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.xhtml#a002bc30e590d78cbb4f4d12171055ca7">armnn::TransposeConvolution2dDescriptor::m_PadRight</a></div><div class="ttdeci">uint32_t m_PadRight</div><div class="ttdoc">Padding right value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l01244">Descriptors.hpp:1244</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div>
<div class="ttc" id="classarmnn_1_1_transpose_convolution2d_layer_xhtml_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_transpose_convolution2d_layer.xhtml#a65ca562c882ad619684445a1402f415a">armnn::TransposeConvolution2dLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector&lt; TensorShape &gt; InferOutputShapes(const std::vector&lt; TensorShape &gt; &amp;inputShapes) const override</div><div class="ttdoc">Infers the output shapes from given input shapes and layer properties. </div><div class="ttdef"><b>Definition:</b> <a href="_transpose_convolution2d_layer_8cpp_source.xhtml#l00057">TransposeConvolution2dLayer.cpp:57</a></div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.xhtml">armnn</a></li><li class="navelem"><a class="el" href="dir_9d86fd1fbecbedf5bdb69c7e7235fe5f.xhtml">test</a></li><li class="navelem"><a class="el" href="_infer_output_tests_8hpp.xhtml">InferOutputTests.hpp</a></li>
    <li class="footer">Generated on Thu Feb 25 2021 17:27:54 for ArmNN by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>