|
21 | 21 |
|
22 | 22 |
|
23 | 23 | class TrtConvertFlattenTest_dim_2(TrtLayerAutoScanTest): |
| 24 | + def is_program_valid(self, program_config: ProgramConfig) -> bool: |
| 25 | + return True |
| 26 | + |
24 | 27 | def sample_program_configs(self): |
25 | 28 | def generate_input(batch): |
26 | 29 | return np.random.random([batch, 32]).astype(np.float32) |
@@ -102,6 +105,9 @@ def test(self): |
102 | 105 |
|
103 | 106 |
|
104 | 107 | class TrtConvertFlattenTest_dim_3(TrtLayerAutoScanTest): |
| 108 | + def is_program_valid(self, program_config: ProgramConfig) -> bool: |
| 109 | + return True |
| 110 | + |
105 | 111 | def sample_program_configs(self): |
106 | 112 | def generate_input(batch): |
107 | 113 | return np.random.random([batch, 32, 64]).astype(np.float32) |
@@ -183,6 +189,9 @@ def test(self): |
183 | 189 |
|
184 | 190 |
|
185 | 191 | class TrtConvertFlattenTest_dim_4(TrtLayerAutoScanTest): |
| 192 | + def is_program_valid(self, program_config: ProgramConfig) -> bool: |
| 193 | + return True |
| 194 | + |
186 | 195 | def sample_program_configs(self): |
187 | 196 | def generate_input(batch): |
188 | 197 | return np.random.random([batch, 8, 8, 8]).astype(np.float32) |
@@ -264,6 +273,9 @@ def test(self): |
264 | 273 |
|
265 | 274 |
|
266 | 275 | class TrtConvertFlattenTest_dim_5(TrtLayerAutoScanTest): |
| 276 | + def is_program_valid(self, program_config: ProgramConfig) -> bool: |
| 277 | + return True |
| 278 | + |
267 | 279 | def sample_program_configs(self): |
268 | 280 | def generate_input(batch): |
269 | 281 | return np.random.random([batch, 8, 8, 8]).astype(np.float32) |
|
0 commit comments