-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite Patterns for PermuteOp #93
Labels
Bonus
Bonus can be obtained after resolving this issue
enhancement
New feature or request
good first issue
Good for newcomers
Comments
charlesxzb
added
enhancement
New feature or request
good first issue
Good for newcomers
Bonus
Bonus can be obtained after resolving this issue
labels
Mar 16, 2023
charlesxzb
changed the title
Rewrite Patterns for TransposeOp
Rewrite Patterns for PermuteOp
Mar 16, 2023
Merged
在完成Task1中发现,当更改pattern后,可以成功生成转换后的mlir文件,但这里的python测试程序会导致数据对比不通过,这主要是因为在进行数据对比时,onnx模型推理文件的生成于mlir文件pass优化之前,因此onnx模型的推理和mlir模型在的推理时并不相同,带来了测试的报错。 |
的确会产生数据比对不过的情况。此时应设置新的loc name。此数据不进行比对。 |
Merged
想咨询一下剩余两个task是否还存在,因为看到源代码tpu-mlir/lib/Dialect/Top/Canonicalize/Permute.cpp内容好像已经变更了很多 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bonus
Bonus can be obtained after resolving this issue
enhancement
New feature or request
good first issue
Good for newcomers
This task is divided into 5 subtasks, and a PR can be submitted after completing each task.
Note: ONNX Transpose will be converted as PermuteOp in TPU-MLIR.
Task1:
Task2:
Task3:
Task4:
Task5:
About how to add a Top Operator pattern, please refer to How to Add a Top Operator Rewrite Pattern?
中文版------------------------------------------------------------------------------------------------
该任务分为5个子任务,每完成一个任务都可以提交一次PR。
注意:ONNX Transpose 将在 TPU-MLIR 中转换为 PermuteOp。
Task1:
Task2:
Task3:
Task4:
Task5:
关于如何添加一个Top层算子的Pattern,可以参考如何添加一个Top层算子的Rewrite Pattern?
The text was updated successfully, but these errors were encountered: