|
13 | 13 | OpNotSupportedPipeline, |
14 | 14 | TosaPipelineFP, |
15 | 15 | TosaPipelineINT, |
| 16 | + VgfPipeline, |
16 | 17 | ) |
17 | 18 |
|
18 | 19 | input_t = Tuple[torch.Tensor] |
@@ -181,3 +182,55 @@ def test_ge_scalar_u85_INT(test_module): |
181 | 182 | run_on_fvp=True, |
182 | 183 | ) |
183 | 184 | pipeline.run() |
| 185 | + |
| 186 | + |
| 187 | +@common.parametrize("test_module", test_data_tensor) |
| 188 | +@common.SkipIfNoModelConverter |
| 189 | +def test_ge_tensor_vgf_FP(test_module): |
| 190 | + pipeline = VgfPipeline[input_t]( |
| 191 | + test_module(), |
| 192 | + test_module().get_inputs(), |
| 193 | + GreaterEqual.aten_op_tensor, |
| 194 | + GreaterEqual.exir_op, |
| 195 | + tosa_version="TOSA-1.0+FP", |
| 196 | + ) |
| 197 | + pipeline.run() |
| 198 | + |
| 199 | + |
| 200 | +@common.parametrize("test_module", test_data_tensor) |
| 201 | +@common.SkipIfNoModelConverter |
| 202 | +def test_ge_tensor_vgf_INT(test_module): |
| 203 | + pipeline = VgfPipeline[input_t]( |
| 204 | + test_module(), |
| 205 | + test_module().get_inputs(), |
| 206 | + GreaterEqual.aten_op_tensor, |
| 207 | + GreaterEqual.exir_op, |
| 208 | + tosa_version="TOSA-1.0+INT", |
| 209 | + ) |
| 210 | + pipeline.run() |
| 211 | + |
| 212 | + |
| 213 | +@common.parametrize("test_module", test_data_scalar) |
| 214 | +@common.SkipIfNoModelConverter |
| 215 | +def test_ge_scalar_vgf_FP(test_module): |
| 216 | + pipeline = VgfPipeline[input_t]( |
| 217 | + test_module(), |
| 218 | + test_module().get_inputs(), |
| 219 | + GreaterEqual.aten_op_scalar, |
| 220 | + GreaterEqual.exir_op, |
| 221 | + tosa_version="TOSA-1.0+FP", |
| 222 | + ) |
| 223 | + pipeline.run() |
| 224 | + |
| 225 | + |
| 226 | +@common.parametrize("test_module", test_data_scalar) |
| 227 | +@common.SkipIfNoModelConverter |
| 228 | +def test_ge_scalar_vgf_INT(test_module): |
| 229 | + pipeline = VgfPipeline[input_t]( |
| 230 | + test_module(), |
| 231 | + test_module().get_inputs(), |
| 232 | + GreaterEqual.aten_op_tensor, |
| 233 | + GreaterEqual.exir_op, |
| 234 | + tosa_version="TOSA-1.0+INT", |
| 235 | + ) |
| 236 | + pipeline.run() |
0 commit comments