| Files | Last commit | Last update |
|---|---|---|
fix(conv): expose ConvReLuType/TileL1Info/TileL0Info via pypto top level and update docs Co-authored-by: liyouhui<liyouhui1@huawei.com> # message auto-generated for no-merge-commit merge: !7293 merge fix_documentation into master fix(conv): expose ConvReLuType/TileL1Info/TileL0Info via pypto top level and update docs Created-by: rhineriver23 Commit-by: liyouhui Merged-by: cann-robot Description: 在pypto侧声明 ConvReLuType/TileL1Info/TileL0Info,并修改对应文档 See merge request: cann/pypto!7293 | 25 days ago | |
feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Co-authored-by: Zehai<wangzehai3@huawei.com> Co-authored-by: hongyiliu111<liuhongyi1@huawei.com> Co-authored-by: yuxin5<yuxin5@huawei.com> Co-authored-by: xutianlong1<xutianlong1@huawei.com> Co-authored-by: zhouxuan78<zhouxuan78@huawei.com> # message auto-generated for no-merge-commit merge: !6752 merge dev into master feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Created-by: yuxin5 Commit-by: Zehai;yuxin5;zhouxuan78;xutianlong1;royccc;hongyiliu111 Merged-by: cann-robot Description: feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Add pypto.conv_backward_filter interface to compute the gradient of convolution with respect to the weight tensor, and implement its 2D support spanning the frontend interface, backend operation implementation and MTE codegen Changes: - Add pypto.conv_backward_filter frontend interface with parameter validation - Implement ConvBackwardFilter 2D backend operation and codegen - Add UT/ST test cases for the 2D implementation See merge request: cann/pypto!6752 | 29 days ago | |
fix(operation): Intercepting invalid scalar types for Rightshift, Leftshift and Gcd in python op Co-authored-by: 杨志邈<yangzhimiao@huawei.com> # message auto-generated for no-merge-commit merge: !7417 merge master into master fix(operation): Intercepting invalid scalar types for Rightshift, Leftshift and Gcd in python op Created-by: yangzhimiao Commit-by: 杨志邈 Merged-by: cann-robot Description: python测也需要拦截非整形的输入,以免从python impl的类型转换掩盖问题 关联issue:[#3799](https://gitcode.com/cann/pypto/issues/3799) See merge request: cann/pypto!7417 | 21 days ago | |
fix(operation): Add missing arch and format constraint checks for matmul/scaled_mm Co-authored-by: shi-dingkun<shidingkun1@huawei.com> # message auto-generated for no-merge-commit merge: !5865 merge fix/matmul-arch-and-format-constraint-check into master fix(operation): Add missing arch and format constraint checks for matmul/scaled_mm Created-by: shi-dingkun Commit-by: shi-dingkun Merged-by: cann-robot Description: 为 matmul/scaled_mm 补齐接口文档中缺失的业务约束检查以及文档针对多核切K功能的描述修正,并修正 FP4 UT。 ## 约束检查 | 约束 | 检查位置 | |---|---| | 输入→输出 dtype 组合表(基础/量化/反量化场景) | __validate_out_dtype | | A2/A3 不支持 DT_HF8 输入 | __validate_inputs | | DT_HF8 不支持 NZ 格式 | __validate_inputs | | A2/A3 不支持 trans_mode | __validate_trans_mode | | scale_a/scale_b 仅支持 ND 格式 | __validate_scaled_inputs | | matmul 拒绝 FP4 输入(仅 scaled_mm 支持) | __validate_matmul_fp4_input | ## FP4 UT 修正 test_fp4_packed_shape.py 重写为正规写法:独立 X/Y 矩阵,scaled_mm + scale tensors + DT_FP16 输出。 ## 测试 test_matmul_op.py 20/20 通过,test_fp4_packed_shape.py 1/1 通过。 Related Issues: #3213 See merge request: cann/pypto!5865 | 2 months ago | |
fix(operation): Change scaleA/B to per-batch when using scaleMM+BatchMatmul. Co-authored-by: y00957431<yangrui231@huawei.com> # message auto-generated for no-merge-commit merge: !5571 merge scaleBMM into master fix(operation): Change scaleA/B to per-batch when using scaleMM+BatchMatmul. Created-by: yr12318 Commit-by: y00957431 Merged-by: cann-robot Description: 此前 scaled_mm 与 BatchMatmul 组合时,scaleA/scaleB 采用共享 batch的方案: 无论矩阵的 batch 维度如何,scale 始终固定为 3-D,并在所有 batch 间广播同一组 scale。 这不符合按 batch 缩放的语义,当各 batch 携带不同 scale 时会导致结果错误。 本 PR 将 scaleA/scaleB 改为按 batch 语义:每个 scale 的维度需比其配对矩阵多一维, 且 scale 的 batch 维度必须与配对矩阵的 batch 维度一致。 Changes: - Python(matmul.py):要求 scale_dim == input_dim + 1;校验 scale 的 batch 维 等于配对矩阵的 batch 维;scale 元素索引由固定 [0/1/2] 改为 [-3/-2/-1] 以支持 2-D/3-D/4-D 矩阵;收紧 __validate_scale_k1_dimensions(AND 改为 OR,要求所有 k1 维均等于 2);更新 docstring,补充 2-D/3-D/4-D scale 形状示例 - C++(cube_operation_impl.cpp):CheckMXMatmulShape 增加 inputDim∈[2,4]、 scaleDim==inputDim+1 及逐轴 batch 配对校验;通过 scaleDimOffset 泛化 scale 偏移 索引;新增 GetBatchScaleTensor3D/GetBatchScaleTensor4D(按 batch 做 View+Reshape 切片,含 ASSERT 空指针保护,与 GetBatchTensor3D/4D 模式一致),并接入 ConstructBatchMatmulMXTensorGraph3D/4D - 测试:新增 UT test_scaled_mm_batch_scale.py(3-D 拒绝 / 4-D 接受 / 4-D 拒绝); 更新 C++ UT test_operation_impl.cpp、ST test_scaled_bmm.py 与 scaled_bmm_test_case.py See merge request: cann/pypto!5571 | 2 months ago | |
feat(operation): Support int64/uint64 for vector operations Co-authored-by: junnyleo<lijun580@huawei.com> # message auto-generated for no-merge-commit merge: !5572 merge feat/dtype into master feat(operation): Support int64/uint64 for vector operations Created-by: junnyleo Commit-by: junnyleo Merged-by: cann-robot Description: 本 PR 旨在为向量(vector)算子补充 int64/uint64 数据类型支持。改动主要为: 1. 通过 GetSupportedDataTypesByArch 在 A5 架构(DAV_3510)的算子支持类型集合中加入 DT_INT64/DT_UINT64; 2. 新增 CheckInt64Broadcast 校验以禁止 int64/uint64 输入的 broadcast;同时修正标量 Element 的构造/转换路径(int64 不经 float、uint64 不经 int64 中转),避免大数值精度丢失或符号翻转; 3. 在 tile-op 内核层为 int64 补齐 FloorDiv、compare、logicalnot、unary 等实现; 4. 配套更新了 Python 侧与测试用例及md文档。 Related Issue: #3141 See merge request: cann/pypto!5572 | 2 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 25 days ago | ||
| 29 days ago | ||
| 21 days ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 4 months ago |