Memory block
A memory module has two operations, namely write and read. To write in to the memory, features extracted from the neural network are used to update the memory elements appropriately. Whereas, the memory read operation is used by the features extracted from the neural network to query the memory and retrieve the most similar memory element (or prototypical feature).