The invention discloses a
software and hardware collaborative optimization method for a
hybrid in-
memory architecture, which comprises the following steps of: performing joint feature representation on a target AI
algorithm and an in-memory computing architecture, extracting context features, and parameterizing in-memory computing unit configuration, a neural
network processor assembly line, a multi-core
interconnection topology and a storage level interface of the in-memory computing architecture; an off-line reference
data set is constructed, a predictive agent model is trained, discrete architecture parameters are processed by the model by adopting an embedding method, feature association is learned by applying an
encoder with a self-attention mechanism, joint prediction of multi-dimensional PPA indexes is realized through a parallel prediction network, and a feasible region constraint learning mechanism is introduced in training; the trained agent model is embedded into a multi-objective
evolutionary algorithm, the energy efficiency ratio, the average computing power
utilization rate, the model execution
delay and the like serve as optimization objectives,
chip area efficiency and
power consumption constraints are met at the same time, and a
Pareto optimal in-memory computing architecture configuration set is searched.