| Files | Last commit | Last update |
|---|---|---|
fix(tensor): Fix assemble offset for slice assignment without start and IR dump update Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !5941 merge fix/issue3-assemble-no-start-offset into master fix(tensor): Fix assemble offset for slice assignment without start and IR dump update Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: loop 循环中 assemble 写法不带起始 start 偏移量时存在精度问题。典型写法: output_tensor[b_idx * tile_b:(b_idx + 1) * tile_b, :h] = left # "[:h]" 不带 start output_tensor[b_idx * tile_b:(b_idx + 1) * tile_b, h:] = right Issue 中最小复现(test_coe_issue.py 1)triple-compare 精度 FAILED,IR 偏移证据为 to offset:[0,-64] to dynoffset:[...,-64]。 修复 Tensor._get_assemble_offset 对 slice(None, stop) 的偏移错算,使不带 start 的切片赋值写入正确位置。 按 Python 切片语义,切片起始位置即写入偏移——start 为 None 时 offset 置 0,否则为 start。同步清理不再使用的 stop/axis 局部变量。 此外,IR 文本 dump 能力增强 IRTextDumper::PrintAttrValue 缺少 std::vector<SymbolicScalar> 类型分支,导致 assemble/view 属性中的动态偏移(toOffset、fromOffset、toValidShape 等)序列化为 "Unsupported" 新增缺失分支,复用文件内已有的 VisitScalarExpr::Visit 打印器。[expr, expr] 列表格式符合 attr_value_list 文法,IRTextLoader round-trip 不受影响 新增 assemble_offset/ IR 快照回归测试(复刻 issue kernel 场景,pil.compile + check_snapshot);重渲染 94 个受影响黄金文件(Unsupported → 真实偏移表达式) Related Issue: #3216 See merge request: cann/pypto!5941 | 2 months ago | |
feat(pypto_pro):refactor auto pipeline Co-authored-by: huanyongben<huanyongben1@hisilicon.com> # message auto-generated for no-merge-commit merge: !5958 merge master into master feat(pypto_pro):refactor auto pipeline Created-by: huanyongben Commit-by: huanyongben Merged-by: cann-robot Description: 1、重构部分代码,优化代码结构和可读性 2、修复bug 3、补充资料 See merge request: cann/pypto!5958 | 2 months ago | |
fix(pypto_pro): Validate tile address capacity validation Co-authored-by: zhengyaoff12<zhengyao12@huawei.com> # message auto-generated for no-merge-commit merge: !5779 merge tile-addr-capacity-check into master fix(pypto_pro): Validate tile address capacity validation Created-by: zhengyaoff12 Commit-by: zhengyaoff12 Merged-by: cann-robot Description: Related Issue: https://gitcode.com/cann/pypto/issues/3181 See merge request: cann/pypto!5779 | 2 months ago | |
fix(tensor): Fix assemble offset for slice assignment without start and IR dump update Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !5941 merge fix/issue3-assemble-no-start-offset into master fix(tensor): Fix assemble offset for slice assignment without start and IR dump update Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: loop 循环中 assemble 写法不带起始 start 偏移量时存在精度问题。典型写法: output_tensor[b_idx * tile_b:(b_idx + 1) * tile_b, :h] = left # "[:h]" 不带 start output_tensor[b_idx * tile_b:(b_idx + 1) * tile_b, h:] = right Issue 中最小复现(test_coe_issue.py 1)triple-compare 精度 FAILED,IR 偏移证据为 to offset:[0,-64] to dynoffset:[...,-64]。 修复 Tensor._get_assemble_offset 对 slice(None, stop) 的偏移错算,使不带 start 的切片赋值写入正确位置。 按 Python 切片语义,切片起始位置即写入偏移——start 为 None 时 offset 置 0,否则为 start。同步清理不再使用的 stop/axis 局部变量。 此外,IR 文本 dump 能力增强 IRTextDumper::PrintAttrValue 缺少 std::vector<SymbolicScalar> 类型分支,导致 assemble/view 属性中的动态偏移(toOffset、fromOffset、toValidShape 等)序列化为 "Unsupported" 新增缺失分支,复用文件内已有的 VisitScalarExpr::Visit 打印器。[expr, expr] 列表格式符合 attr_value_list 文法,IRTextLoader round-trip 不受影响 新增 assemble_offset/ IR 快照回归测试(复刻 issue kernel 场景,pil.compile + check_snapshot);重渲染 94 个受影响黄金文件(Unsupported → 真实偏移表达式) Related Issue: #3216 See merge request: cann/pypto!5941 | 2 months ago | |
Initial commit | 10 months ago | |
fix the incompatibility between pytest_forked 1.7.5 and torch_npu Co-authored-by: chen_chenn<chenchen167@huawei.com> # message auto-generated for no-merge-commit merge: !5843 merge master into master fix the incompatibility between pytest_forked 1.7.5 and torch_npu Created-by: chen_chenn Commit-by: chen_chenn Merged-by: cann-robot Description: 修复python3 -m pytest "$TARGET" -v --durations=0 -s --capture=no --rootdir=/tmp/devx_workspace --forked 报错 python/tests/st/frontend/test_function_kernel.py::test_add_with_kwargs_check_stable FAILED msg = (f"NPU call failed lazily at initialization with error: {str(e)}\n\n" raise RuntimeError( "Cannot re-initialize NPU in forked subprocess. To use NPU with " E RuntimeError: Cannot re-initialize NPU in forked subprocess. To use NPU with multiprocessing, you must use the 'spawn' start method /usr/local/lib/python3.11/site-packages/torch_npu/npu/__init__.py:269: RuntimeError FAILED python/tests/st/frontend/test_function_kernel.py::test_add_with_kwargs_check_stable ============================== 1 failed in 0.52s =============================== See merge request: cann/pypto!5843 | 2 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 10 months ago | ||
| 2 months ago |