-
公开(公告)号:US20200265108A1
公开(公告)日:2020-08-20
申请号:US16869837
申请日:2020-05-08
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Zhenjiang Dong , CHIO IN IEONG , Hu Liu , Hai Chen
Abstract: A matrix processing method includes: determining a quantity of non-zero elements in a to-be-processed matrix, where the to-be-processed matrix is a one-dimensional matrix; generating a distribution matrix of the to-be-processed matrix, where the distribution matrix is used to indicate a position of a non-zero element in the to-be-processed matrix; combining the quantity of non-zero elements, values of all non-zero elements in the to-be-processed matrix arranged sequentially, and the distribution matrix, to obtain a compressed matrix of the to-be-processed matrix.
-
公开(公告)号:US20220114235A1
公开(公告)日:2022-04-14
申请号:US17560472
申请日:2021-12-23
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Zhenjiang Dong , CHIO IN IEONG , Hu Liu , Hai Chen
Abstract: A matrix processing method performed by a graphics processing unit (GPU) includes: determining a plurality of non-zero elements in a to-be-processed matrix at a processor in the GPU; generating a distribution matrix of the to-be-processed matrix at the processor, where the distribution matrix comprises identities for indicating positions of the plurality of non-zero elements in the to-be-processed matrix; obtaining a target matrix from another matrix by using the distribution matrix at a logic circuit in the processor, where the target matrix comprises a plurality of target elements from the another matrix; and performing matrix processing on the plurality of non-zero elements and the target matrix to obtain an operation result at the processor.
-