• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // clang-format off
2 // Generated file (from: conv2d_per_channel.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4 
5 namespace conv2d_per_channel {
6 // Generated conv2d_per_channel test
7 #include "generated/examples/conv2d_per_channel.example.cpp"
8 // Generated model constructor
9 #include "generated/models/conv2d_per_channel.model.cpp"
10 } // namespace conv2d_per_channel
11 
TEST_F(GeneratedTests,conv2d_per_channel)12 TEST_F(GeneratedTests, conv2d_per_channel) {
13     execute(conv2d_per_channel::CreateModel,
14             conv2d_per_channel::is_ignored,
15             conv2d_per_channel::get_examples());
16 }
TEST_AVAILABLE_SINCE(V1_2,conv2d_per_channel,conv2d_per_channel::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, conv2d_per_channel, conv2d_per_channel::CreateModel)
18 
19 TEST_F(GeneratedTests, conv2d_per_channel_weight_as_input) {
20     execute(conv2d_per_channel::CreateModel_weight_as_input,
21             conv2d_per_channel::is_ignored_weight_as_input,
22             conv2d_per_channel::get_examples_weight_as_input());
23 }
TEST_AVAILABLE_SINCE(V1_2,conv2d_per_channel_weight_as_input,conv2d_per_channel::CreateModel_weight_as_input)24 TEST_AVAILABLE_SINCE(V1_2, conv2d_per_channel_weight_as_input, conv2d_per_channel::CreateModel_weight_as_input)
25 
26 TEST_F(DynamicOutputShapeTest, conv2d_per_channel_dynamic_output_shape) {
27     execute(conv2d_per_channel::CreateModel_dynamic_output_shape,
28             conv2d_per_channel::is_ignored_dynamic_output_shape,
29             conv2d_per_channel::get_examples_dynamic_output_shape());
30 }
31 
TEST_F(DynamicOutputShapeTest,conv2d_per_channel_dynamic_output_shape_weight_as_input)32 TEST_F(DynamicOutputShapeTest, conv2d_per_channel_dynamic_output_shape_weight_as_input) {
33     execute(conv2d_per_channel::CreateModel_dynamic_output_shape_weight_as_input,
34             conv2d_per_channel::is_ignored_dynamic_output_shape_weight_as_input,
35             conv2d_per_channel::get_examples_dynamic_output_shape_weight_as_input());
36 }
37 
TEST_F(GeneratedTests,conv2d_per_channel_layouts_nhwc)38 TEST_F(GeneratedTests, conv2d_per_channel_layouts_nhwc) {
39     execute(conv2d_per_channel::CreateModel_layouts_nhwc,
40             conv2d_per_channel::is_ignored_layouts_nhwc,
41             conv2d_per_channel::get_examples_layouts_nhwc());
42 }
TEST_AVAILABLE_SINCE(V1_2,conv2d_per_channel_layouts_nhwc,conv2d_per_channel::CreateModel_layouts_nhwc)43 TEST_AVAILABLE_SINCE(V1_2, conv2d_per_channel_layouts_nhwc, conv2d_per_channel::CreateModel_layouts_nhwc)
44 
45 TEST_F(GeneratedTests, conv2d_per_channel_layouts_nhwc_weight_as_input) {
46     execute(conv2d_per_channel::CreateModel_layouts_nhwc_weight_as_input,
47             conv2d_per_channel::is_ignored_layouts_nhwc_weight_as_input,
48             conv2d_per_channel::get_examples_layouts_nhwc_weight_as_input());
49 }
TEST_AVAILABLE_SINCE(V1_2,conv2d_per_channel_layouts_nhwc_weight_as_input,conv2d_per_channel::CreateModel_layouts_nhwc_weight_as_input)50 TEST_AVAILABLE_SINCE(V1_2, conv2d_per_channel_layouts_nhwc_weight_as_input, conv2d_per_channel::CreateModel_layouts_nhwc_weight_as_input)
51 
52 TEST_F(GeneratedTests, conv2d_per_channel_layouts_nchw) {
53     execute(conv2d_per_channel::CreateModel_layouts_nchw,
54             conv2d_per_channel::is_ignored_layouts_nchw,
55             conv2d_per_channel::get_examples_layouts_nchw());
56 }
TEST_AVAILABLE_SINCE(V1_2,conv2d_per_channel_layouts_nchw,conv2d_per_channel::CreateModel_layouts_nchw)57 TEST_AVAILABLE_SINCE(V1_2, conv2d_per_channel_layouts_nchw, conv2d_per_channel::CreateModel_layouts_nchw)
58 
59 TEST_F(GeneratedTests, conv2d_per_channel_layouts_nchw_weight_as_input) {
60     execute(conv2d_per_channel::CreateModel_layouts_nchw_weight_as_input,
61             conv2d_per_channel::is_ignored_layouts_nchw_weight_as_input,
62             conv2d_per_channel::get_examples_layouts_nchw_weight_as_input());
63 }
TEST_AVAILABLE_SINCE(V1_2,conv2d_per_channel_layouts_nchw_weight_as_input,conv2d_per_channel::CreateModel_layouts_nchw_weight_as_input)64 TEST_AVAILABLE_SINCE(V1_2, conv2d_per_channel_layouts_nchw_weight_as_input, conv2d_per_channel::CreateModel_layouts_nchw_weight_as_input)
65 
66 TEST_F(DynamicOutputShapeTest, conv2d_per_channel_layouts_dynamic_output_shape_nhwc) {
67     execute(conv2d_per_channel::CreateModel_layouts_dynamic_output_shape_nhwc,
68             conv2d_per_channel::is_ignored_layouts_dynamic_output_shape_nhwc,
69             conv2d_per_channel::get_examples_layouts_dynamic_output_shape_nhwc());
70 }
71 
TEST_F(DynamicOutputShapeTest,conv2d_per_channel_layouts_dynamic_output_shape_nhwc_weight_as_input)72 TEST_F(DynamicOutputShapeTest, conv2d_per_channel_layouts_dynamic_output_shape_nhwc_weight_as_input) {
73     execute(conv2d_per_channel::CreateModel_layouts_dynamic_output_shape_nhwc_weight_as_input,
74             conv2d_per_channel::is_ignored_layouts_dynamic_output_shape_nhwc_weight_as_input,
75             conv2d_per_channel::get_examples_layouts_dynamic_output_shape_nhwc_weight_as_input());
76 }
77 
TEST_F(DynamicOutputShapeTest,conv2d_per_channel_layouts_dynamic_output_shape_nchw)78 TEST_F(DynamicOutputShapeTest, conv2d_per_channel_layouts_dynamic_output_shape_nchw) {
79     execute(conv2d_per_channel::CreateModel_layouts_dynamic_output_shape_nchw,
80             conv2d_per_channel::is_ignored_layouts_dynamic_output_shape_nchw,
81             conv2d_per_channel::get_examples_layouts_dynamic_output_shape_nchw());
82 }
83 
TEST_F(DynamicOutputShapeTest,conv2d_per_channel_layouts_dynamic_output_shape_nchw_weight_as_input)84 TEST_F(DynamicOutputShapeTest, conv2d_per_channel_layouts_dynamic_output_shape_nchw_weight_as_input) {
85     execute(conv2d_per_channel::CreateModel_layouts_dynamic_output_shape_nchw_weight_as_input,
86             conv2d_per_channel::is_ignored_layouts_dynamic_output_shape_nchw_weight_as_input,
87             conv2d_per_channel::get_examples_layouts_dynamic_output_shape_nchw_weight_as_input());
88 }
89 
TEST_F(GeneratedTests,conv2d_per_channel_zero_sized_nhwc)90 TEST_F(GeneratedTests, conv2d_per_channel_zero_sized_nhwc) {
91     execute(conv2d_per_channel::CreateModel_zero_sized_nhwc,
92             conv2d_per_channel::is_ignored_zero_sized_nhwc,
93             conv2d_per_channel::get_examples_zero_sized_nhwc());
94 }
TEST_AVAILABLE_SINCE(V1_2,conv2d_per_channel_zero_sized_nhwc,conv2d_per_channel::CreateModel_zero_sized_nhwc)95 TEST_AVAILABLE_SINCE(V1_2, conv2d_per_channel_zero_sized_nhwc, conv2d_per_channel::CreateModel_zero_sized_nhwc)
96 
97 TEST_F(GeneratedTests, conv2d_per_channel_zero_sized_nchw) {
98     execute(conv2d_per_channel::CreateModel_zero_sized_nchw,
99             conv2d_per_channel::is_ignored_zero_sized_nchw,
100             conv2d_per_channel::get_examples_zero_sized_nchw());
101 }
TEST_AVAILABLE_SINCE(V1_2,conv2d_per_channel_zero_sized_nchw,conv2d_per_channel::CreateModel_zero_sized_nchw)102 TEST_AVAILABLE_SINCE(V1_2, conv2d_per_channel_zero_sized_nchw, conv2d_per_channel::CreateModel_zero_sized_nchw)
103 
104 TEST_F(DynamicOutputShapeTest, conv2d_per_channel_zero_sized_dynamic_output_shape_nhwc) {
105     execute(conv2d_per_channel::CreateModel_zero_sized_dynamic_output_shape_nhwc,
106             conv2d_per_channel::is_ignored_zero_sized_dynamic_output_shape_nhwc,
107             conv2d_per_channel::get_examples_zero_sized_dynamic_output_shape_nhwc());
108 }
109 
TEST_F(DynamicOutputShapeTest,conv2d_per_channel_zero_sized_dynamic_output_shape_nchw)110 TEST_F(DynamicOutputShapeTest, conv2d_per_channel_zero_sized_dynamic_output_shape_nchw) {
111     execute(conv2d_per_channel::CreateModel_zero_sized_dynamic_output_shape_nchw,
112             conv2d_per_channel::is_ignored_zero_sized_dynamic_output_shape_nchw,
113             conv2d_per_channel::get_examples_zero_sized_dynamic_output_shape_nchw());
114 }
115 
116