| CPC G06N 3/063 (2013.01) [G06F 9/3814 (2013.01); G06F 9/3877 (2013.01); G06F 9/4498 (2018.02); G06F 9/5027 (2013.01); G06N 5/04 (2013.01)] | 20 Claims |

|
1. A method, comprising:
extracting, by a drain module of a neural network accelerator from one or more processing elements of the neural network accelerator, data elements in an output tensor of a first layer of a neural network in, the data elements computed by the one or more processing elements in an execution of the first layer, the data elements organized in a first sequence;
reorganizing, by the drain module, the data elements based on a configuration descriptor register for a second layer of the neural network, the configuration descriptor register providing one or more signals to one or more multiplexers in the drain module for reorganizing the data elements, the reorganized data elements having a second sequence that is different from the first sequence, the second layer subsequent to the first layer in the neural network;
writing, by the drain module, the data elements into a memory of the neural network accelerator in accordance with the second sequence; and
performing, by the one or more processing elements, an execution of the second layer of the neural network by using the data elements read from the memory in accordance with the second sequence.
|