You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrates Tripy to use the tensorrt dialect instead of StableHLO (#607)
Migrates Tripy to use the `tensorrt` dialect instead of StableHLO. The
latter is a lower level representation that the TensorRT network API,
meaning that we first break down high level Tripy operations and then
pattern match them back up. Using the `tensorrt` dialect allows us to go
directly to TensorRT without so many intervening layers of translation,
which reduces complexity and bugs, and improves performance.
Broadly, this change does the following:
- Removes FlatIR
- Make Trace responsible for mapping to MLIR
- Trace operations represent MLIR operations 1:1
- Makes the frontend API responsible for composing Trace operations
---------
Signed-off-by: yizhuoz004 <[email protected]>
Co-authored-by: Jhalak Patel <[email protected]>
Co-authored-by: Yizhuo Zhang <[email protected]>
# Type annotations are optional for the `self` parameter unless the API has to be type-verified.
182
-
ifpname!="self"ornameinTYPE_VERIFICATION:
180
+
ifpname!="self":
183
181
assert (
184
182
pnameindocumented_args
185
-
), f"Missing documentation for parameter: '{pname}' in: '{obj}'. Please ensure you've included this in the `Args:` section. Note: Documented parameters were: {documented_args}{doc}"
183
+
), f"Missing documentation for parameter: '{pname}' in: '{obj}'. Please ensure you've included this in the `Args:` section. Note: Documented parameters were: {documented_args}"
186
184
assert (
187
185
pnameindocumented_args
188
186
), f"Missing documentation for parameter: '{pname}' in: '{obj}'. Please ensure you've included this in the `Args:` section. Note: Documented parameters were: {documented_args}"
0 commit comments