Skip to content

Commit b984314

Browse files
committed
add readme
Signed-off-by: dchigarev <dmitry.chigarev@intel.com>
1 parent 370e3c0 commit b984314

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Lighthouse Ingress
2+
3+
The `lighthouse.ingress` module converts various input formats to MLIR modules.
4+
5+
## Supported Formats
6+
7+
#### Torch
8+
Convert PyTorch models to MLIR using `lighthouse.ingress.torch`.
9+
10+
**Examples:** [torch examples](https://github.com/llvm/lighthouse/tree/main/python/examples/ingress/torch)

python/lighthouse/ingress/torch/torch_import.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def import_from_model(
9797
text_module = str(module)
9898
if ir_context is None:
9999
return text_module
100+
# Cross boundary from torch-mlir's mlir to environment's mlir
100101
return ir.Module.parse(text_module, context=ir_context)
101102

102103

0 commit comments

Comments
 (0)