-
公开(公告)号:US20240152471A1
公开(公告)日:2024-05-09
申请号:US18416413
申请日:2024-01-18
Applicant: Huawei Technologies Co., Ltd.
Inventor: Leilei Liu , Mengjie Bai , Honghui Yuan
IPC: G06F13/28
CPC classification number: G06F13/28
Abstract: This application relates to a data format conversion apparatus and method. The data format conversion apparatus is located in a DMA module of a processor. A data format that is of tensor data and that is supported by the processor is a first data format. The DMA module includes: a DMA controller DMAC. If a second data format of tensor data stored in an external memory is different from the first data format, the DMAC is configured to convert, in a process of transmitting to-be-converted tensor data between a memory of the processor and the external memory, the to-be-converted tensor data from the first data format into the second data format or from the second data format into the first data format, to obtain converted tensor data.