Repository navigation
Conversation
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
自查
__init__.py(包化入口) / reference / register / example / kernel/ / test/(不新增算子;只升级既有 register)python3 ops/test_packaging.py(全算子导入扫描)wt-YYYY-MM-DD-fix+# wt <邮箱>,commit 作者相同(本 PR 为库级修复,无新算法文件署名块)说明
Fixes #19.
register contract
All 13 legacy Cambricon operators now expose:
counter["n"]increments at every intercepted aten callplatform="cambricon"/"mlu"/"mlu590"is validateddetach_,empty, andresult_typeintentionally remain non-registerable while accepting the new contractCI repair
The newly added
ops-packagingjob is retained, and the truncateddocs-and-syntaxscript is restored. Markdown links, Python syntax, YAML, intake manifest, and perf-baseline structure checks are active again.验证
No Cambricon MLU device is present in this execution environment, so hardware kernel/op/framework reruns were not possible. The change is registration-only and adds CPU-visible contract tests that fake the torch library to verify interception counters without globally registering aten ops.