rocm_jax/jax/experimental
George Necula 552fef6fcd Introduce a LoweringParameters dataclass for easier plumbing
There are currently two parameters that are used to configure
lowering: lowering_platform (for cross-platform lowering), and
override_lowering_rules. Each of them are passed as separate arguments
through several layers of lowering internal functions. This is tedious,
and error prone. In fact, override_lowering_rules was not plumbed
in all places, and due to using default arguments in all places,
this leads to silent errors.

We foresee introducing other parameters for lowering: for multi-platform
lowering, for controlling the lowering of effects.

Here is pack all such parameters into a `mlir.LoweringParameters`
dataclass and we plumb that through.
2023-09-29 08:23:05 +03:00
..
2023-09-22 14:54:31 -07:00
2023-05-24 10:35:37 -07:00
2023-06-23 15:12:14 -07:00
2023-05-24 10:35:37 -07:00
2023-09-22 14:54:31 -07:00
2023-07-21 14:49:44 -04:00