The invention provides an edge cloud cache configuration method and device based on
tensor complementation, and relates to the technical field of
containerization deployment in an edge cloud network, the method comprises the steps of decomposing
mirror image layer prefetching into prediction of
mirror image layer cache and
mirror image layer pre-scheduling, combining
tensor complementation, an iTransform model and a CP
decomposition algorithm, and after the
tensor is complemented, obtaining an edge cloud cache configuration result. The iTransform model captures non-stationary dependence among dimensions of tensors through an inverted
time sequence attention mechanism of the iTransform model while keeping high efficiency of parameters, steady
inference on
current time information is realized, so that an accurate mirror
image layer prefetching task is supported, a CP
decomposition algorithm performs tensor reconstruction on each selectable tensor to calculate a
score of each selectable tensor, and the
score of each selectable tensor is calculated to obtain a pre-fetching task of the mirror
image layer. And finally, taking the selectable tensor with the highest
score as a target tensor. Based on the method, efficient prefetching and
cache optimization of the AI micro-service mirror
image layer can be realized, so that challenges caused by resource limitation in an edge cloud environment are effectively relieved.