Skip to content

Commit 95d0eb0

Browse files
committed
lint
Signed-off-by: zjgarvey <[email protected]>
1 parent f5831a2 commit 95d0eb0

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

projects/e2e/e2e_testing/main.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,21 @@ def main():
142142

143143
# Find the selected config.
144144
if args.config == "linalg":
145-
config = load_config("JITImporterTestConfig")(RefBackendLinalgOnTensorsBackend())
145+
config = load_config("JITImporterTestConfig")(
146+
RefBackendLinalgOnTensorsBackend()
147+
)
146148
xfail_set = LINALG_XFAIL_SET
147149
crashing_set = LINALG_CRASHING_SET
148150
elif args.config == "stablehlo":
149-
config = load_config("JITImporterTestConfig")(LinalgOnTensorsStablehloBackend(), "stablehlo")
151+
config = load_config("JITImporterTestConfig")(
152+
LinalgOnTensorsStablehloBackend(), "stablehlo"
153+
)
150154
xfail_set = all_test_unique_names - STABLEHLO_PASS_SET
151155
crashing_set = STABLEHLO_CRASHING_SET
152156
elif args.config == "tosa":
153-
config = load_config("JITImporterTestConfig")(LinalgOnTensorsTosaBackend(), "tosa")
157+
config = load_config("JITImporterTestConfig")(
158+
LinalgOnTensorsTosaBackend(), "tosa"
159+
)
154160
xfail_set = all_test_unique_names - TOSA_PASS_SET
155161
crashing_set = TOSA_CRASHING_SET
156162
elif args.config == "native_torch":
@@ -170,11 +176,15 @@ def main():
170176
xfail_set = FX_IMPORTER_XFAIL_SET
171177
crashing_set = FX_IMPORTER_CRASHING_SET
172178
elif args.config == "fx_importer_stablehlo":
173-
config = load_config("FxImporterTestConfig")(LinalgOnTensorsStablehloBackend(), "stablehlo")
179+
config = load_config("FxImporterTestConfig")(
180+
LinalgOnTensorsStablehloBackend(), "stablehlo"
181+
)
174182
xfail_set = FX_IMPORTER_STABLEHLO_XFAIL_SET
175183
crashing_set = FX_IMPORTER_STABLEHLO_CRASHING_SET
176184
elif args.config == "fx_importer_tosa":
177-
config = load_config("FxImporterTestConfig")(LinalgOnTensorsTosaBackend(), "tosa")
185+
config = load_config("FxImporterTestConfig")(
186+
LinalgOnTensorsTosaBackend(), "tosa"
187+
)
178188
xfail_set = FX_IMPORTER_TOSA_XFAIL_SET
179189
crashing_set = FX_IMPORTER_TOSA_CRASHING_SET
180190
elif args.config == "torchdynamo":
@@ -185,11 +195,15 @@ def main():
185195
xfail_set = TORCHDYNAMO_XFAIL_SET
186196
crashing_set = TORCHDYNAMO_CRASHING_SET
187197
elif args.config == "onnx":
188-
config = load_config("OnnxBackendTestConfig")(RefBackendLinalgOnTensorsBackend())
198+
config = load_config("OnnxBackendTestConfig")(
199+
RefBackendLinalgOnTensorsBackend()
200+
)
189201
xfail_set = ONNX_XFAIL_SET
190202
crashing_set = ONNX_CRASHING_SET
191203
elif args.config == "onnx_tosa":
192-
config = load_config("OnnxBackendTestConfig")(LinalgOnTensorsTosaBackend(), output_type="tosa")
204+
config = load_config("OnnxBackendTestConfig")(
205+
LinalgOnTensorsTosaBackend(), output_type="tosa"
206+
)
193207
xfail_set = ONNX_TOSA_XFAIL_SET
194208
crashing_set = ONNX_TOSA_CRASHING_SET
195209

projects/e2e/torch_mlir_e2e_test/configs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"FxImporterTestConfig": "fx_importer_backend",
1818
}
1919

20+
2021
def load_config(name: str) -> type:
2122
source = CONFIG_LOCATIONS.get(name)
2223
assert source is not None, f"Could not find TestConfig named {name}."

0 commit comments

Comments
 (0)