The invention relates to the field of
artificial intelligence, and provides an in-memory computing
system and method based on product cache, the
system comprises a cache control module, an in-memory computing module, a feature cache module and a
content addressable memory, the cache control module reads a current to-be-processed local feature map from the feature cache module, the
content addressable memory is searched for according to the current local feature map to be processed, a corresponding hit address is obtained based on the inquired corresponding local feature map, and the hit address is input into the in-memory calculation module; and the in-memory calculation module reads the corresponding product result cached in advance according to the hit address, and obtains a task
processing result according to the product result of all the corresponding images to be subjected to task
processing. According to the method, on the basis of the data locality features in the
visual task, the product of the pixel values of the locality features and the model weights is cached and reused, the multiplication calculation amount is effectively reduced, and high-energy-efficiency in-memory calculation is achieved.