commit | d51766100ced776996224be057281f9763549c28 | [log] [tgz] |
---|---|---|
author | Boian Petkantchin <boian.petkantchin@amd.com> | Tue Jan 07 07:46:45 2025 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 07 15:46:45 2025 +0000 |
tree | 45b2304c1bbbbab3159d3cf67a6fda27cf1198a2 | |
parent | d2242207764230ad398585a5771f9d54ce91b4c8 [diff] |
[runtime][python] Add debug sink to bindings (#19013) We don't support custom debug sinks in the Runtime Python bindings. In particular the ability to register a custom callback when tracing tensors. This change makes it possible to create a HAL module with a Python function as a callback. This implementation does not handle the case of referencing directly or indirectly the HAL module, VM context or VM instance in the callback function object. In such a scenario the circular reference will not be collected by the garbage collector and will leak. No no check is done to guard against this. It is possible to traverse the Python object structure to detect a reference to VM objects but it would require more effort. Here is added a callback to the debug sink in the IREE native runtime API that signals when the runtime is done using the debug sink. We need this since the Python objects corresponding to native runtime objects are ephemeral and can not be used to hold the reference to the debug sink. --------- Signed-off-by: Boian Petkantchin <boian.petkantchin@amd.com>
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
Releases notes are published on GitHub releases.
Package | Release status |
---|---|
GitHub release (stable) | |
GitHub release (nightly) | |
Python iree-base-compiler | |
Python iree-base-runtime |
Operating system | Build status |
---|---|
Linux | |
macOS | |
Windows |
For the full list of workflows see https://iree.dev/developers/general/github-actions/.
See our website for more information.
Community meeting recordings: IREE YouTube channel
Date | Title | Recording | Slides |
---|---|---|---|
2021-06-09 | IREE Runtime Design Tech Talk | recording | slides |
2020-08-20 | IREE CodeGen (MLIR Open Design Meeting) | recording | slides |
2020-03-18 | Interactive HAL IR Walkthrough | recording | |
2020-01-31 | End-to-end MLIR Workflow in IREE (MLIR Open Design Meeting) | recording | slides |
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.