An RNN operator computing method, device, equipment,
computer program product and medium are provided. The method is for an RNN operator. First, sequence data containing a plurality of
time step input matrices is acquired, and the input matrices are subjected to single matrix-
matrix multiplication operation with a layer input weight matrix, thereby generating, at one time, intermediate result matrices corresponding to all time steps for gated calculation. Subsequently, based on a binary
semaphore mechanism, the production completion state of the batch of intermediate result matrices is synchronized among a plurality of
parallel computing units of a
chip. Once the production is confirmed to be completed, each computing unit performs iterative update calculation of the hidden space state in
time step order using the ready intermediate result matrices. In the
iteration process, the production state of the latest hidden space state is also synchronized between adjacent
time step computing units through the binary
semaphore mechanism, to ensure the
correctness of the
time sequence dependency, and finally the hidden space state output corresponding to the entire input sequence is obtained.