Repository navigation
[mkldnn][2/N] Use oneDNN types directly instead of ideep aliases - #201053
frost-intel wants to merge 2 commits into
Conversation
PR Status: Approved 🚀Please fix all CI failures and trigger merge by commenting "@pytorchbot merge". ✅ AUTOMATED REVIEW - OUTDATED (earlier commit) - Ready for human review:
Findings (3): Reviewed commit: 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/201053
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit c969a87 with merge base 780bf8e ( NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following job failed, but the AI CI Advisor judged the failure not to be evidence against this change:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
032b176 to
8db001b
Compare
There was a problem hiding this comment.
Automated review of 8db001b: nothing blocking; ready for human review.
This PR replaces ideep type aliases with the oneDNN/std types they name across ATen mkldnn, quantized CPU and the JIT mkldnn pass. Every swap appears to be to an identical type; the only problems are stale comments next to the edited lines. Recommendation: Approve.
⚪ 3 non-blocking findings
The comment above this line says "NOTE: int32_t dims from ideep::tensor but sizes needs int64_t / TODO: support int64_t dims in ideep::tensor to avoid extra conversion". dnnl::memory::dims has been std::vector<int64_t> since oneDNN 1.x, so this is a plain copy with no conversion. The comment was already stale before this PR, and now that the type is spelled out it plainly contradicts the next line. Delete both comment lines as part of this cleanup.
The rewritten comment says the scale is "stored in std::vector<float>(scale_size, inv_output_scale)", but scale_size exists nowhere in the file; the code passes std::vector<float>(1, inv_output_scale). Since the PR edits this line anyway, make it match the code, e.g. "stored in the dst scales passed below and dst_zero_points".
The rewritten comment says "stored in std::vector<float>(scale_size, output_scale)", but scale_size exists nowhere in the file and the code passes std::vector<float>(1, 1.0f / output_scale), so the comment also says output_scale where the code uses 1.0f / output_scale. Since the PR edits this line anyway, make it match the code, e.g. "stored in the dst scales passed below (1/output_scale) and dst_zero_points".
This review is AI-generated and advisory. Each new automated review replaces the previous one. Report a bad review
Part of pytorch#154444. Replace ideep type aliases with the oneDNN (or std) types they name. Each is a plain `using` in ideep, so this is a pure spelling change with no effect on generated code. It removes about a third of the remaining ideep references from ATen CPU code.
8db001b to
6b3a993
Compare
- TensorFactories: drop the int32_t-dims note; dnnl::memory::dims is int64_t. - qconv: the dst-scale comments named a nonexistent `scale_size`; describe what the code actually passes (1/output_scale and dst_zero_points).
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
Validated internally as well |
Linked issue or supporting maintainer
Part of #154444
BC-breaking?
No
Summary (human written only)
See #154444 for ideep removal discussion.
Replace ideep type aliases with the oneDNN or std types they name. Each is a plain
usingin ideep, so this is a pure spelling change with no effect on generated code. It removes about a third of the remaining ideep references from ATen CPU code.Fake Stack
sum,binary, anddirect_copyops from ideep into ATen #201059compute_v2op into ATen #202611Agent details (if applicable)
Developed with assistance from Claude Opus 5.5
Summary:
cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @aditew01