- 专利标题: MATRIX COMPUTING METHOD, CHIP, AND RELATED DEVICE
-
申请号: US18748393申请日: 2024-06-20
-
公开(公告)号: US20240338174A1公开(公告)日: 2024-10-10
- 发明人: Guangning Fu , Tengyi Lin
- 申请人: HUAWEI TECHNOLOGIES CO., LTD.
- 申请人地址: CN Shenzhen
- 专利权人: HUAWEI TECHNOLOGIES CO., LTD.
- 当前专利权人: HUAWEI TECHNOLOGIES CO., LTD.
- 当前专利权人地址: CN Shenzhen
- 优先权: CN 2111567014.8 2021.12.20 CN 2210460849.1 2022.04.28
- 主分类号: G06F5/16
- IPC分类号: G06F5/16 ; G06F9/38 ; G06F17/16
摘要:
This application provides a matrix computing method, a chip, and a related device. The chip includes a first buffer, is configured to buffer a first vector, and a second buffer is configured to buffer a second vector. A scheduling module generates a selection signal based on a bitmap of the first vector. The selection signal may cause the processing element to obtain, from the first buffer, a group of non-zero elements in the first vector, and cause the processing element to obtain, from the second buffer, a group of elements in the second vector. An operation is performed between the first vector and the second vector based on the group of non-zero elements in the first vector and the group of elements in the second vector. In this application, an element whose value is 0 in one vector may be excluded from computing, to reduce a computing amount.
信息查询