The invention discloses a
data processing method,
electronic equipment, a medium and a
computer program product, and relates to the technical field of computers, and the
data processing method comprises the following steps: firstly, arranging
feature data blocks by taking batches as elements, arranging weight data blocks by taking output channels as elements, and accessing
feature data and weight data more orderly in
convolution calculation; then, a proper storage mode is selected by judging the scale of
network data and a set threshold value; when the data scale is smaller than a set threshold value,
convolution calculation is carried out after data are loaded in an on-
chip storage mode, data reading
delay can be reduced, and the calculation response speed can be increased; when the data scale is large, an off-
chip memory access mode is adopted to load data while
convolution calculation is carried out, so that idle calculation resources caused by waiting for all the data to be loaded are avoided. In this way, the convolution calculation part for
feature extraction of the
reinforcement learning front end can be cooperatively deployed to the
block matrix calculation architecture, resource reuse is achieved, and hardware implementation complexity and hardware
resource consumption are effectively reduced.