Skip to content

Commit 4ab75c9

Browse files
committed
REQUIRES in cfg instead
1 parent b2bea94 commit 4ab75c9

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
config.excludes = ["MLPModel"]
2+
3+
if "torch" not in config.available_features:
4+
config.unsupported = True

examples/ingress/torch/mlp_from_file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# RUN: python %s
2-
# REQUIRES: torch
32

43
"""
54
Example demonstrating how to load a PyTorch model to MLIR using Lighthouse

examples/ingress/torch/mlp_from_model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# RUN: python %s
2-
# REQUIRES: torch
32

43
"""
54
Example demonstrating how to load an already initialized PyTorch model

lighthouse/utils/runtime/ffi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ def memrefs_to_packed_args(memref_descs) -> list[ctypes.c_void_p]:
3434
"""
3535
ctype_args = [memref_to_ctype(memref) for memref in memref_descs]
3636
return get_packed_arg(ctype_args)
37-

0 commit comments

Comments
 (0)