Patent attributes
An electronic apparatus includes a memory storing information on an artificial intelligence (AI) model comprising a plurality of layers, and a processor configured to obtain an output image that is processed from an input image using the AI model. The processor is configured to, based on a number of non-zero data values included in operation data output from a first layer among the plurality of layers, compress the operation data according to at least one of a plurality of coding modes and store the compressed data in an internal memory, obtain restoration data corresponding to the operation data by decompressing the compressed data stored in the internal memory, and provide the obtained restoration data to a second layer among the plurality of layers.