An electronic apparatus, comprising: a storage configured to store object data and kernel data; and a processor comprising a plurality of processing elements (121-1 to 121-n) arranged in a matrix formation, wherein the processor is configured to: input corresponding first elements, among a plurality of first elements included in the object data, respectively into processing elements arranged in a first row among the plurality of processing elements, input a plurality of second elements, included in the kernel data, sequentially into the processing elements arranged in the first row to perform operations between the corresponding first elements and the plurality of second elements, compare, through a logic circuit included in each of the processing elements arranged in the first row, the corresponding first elements and the plurality of second elements input to the processing elements arranged in the first row by depth, wherein the corresponding first elements and the plurality of second elements are composed of equal number of plural depths, identify a depth among the plural depths in which a first element and a second element, among the compared corresponding first elements and the plurality of second elements input to the processing elements arranged in the first row, have a non-zero value, and input the first element and the second element corresponding to the identified depth into a calculator included in each of the processing elements arranged in the first row to perform a convolution operation. a storage configured to store object data and kernel data; and a processor comprising a plurality of processing elements (121-1 to 121-n) arranged in a matrix formation, wherein the processor is configured to: input corresponding first elements, among a plurality of first elements included in the object data, respectively into processing elements arranged in a first row among the plurality of processing elements, input a plurality of second elements, included in the kernel data, sequentially into the processing elements arranged in the first row to perform operations between the corresponding first elements and the plurality of second elements, compare, through a logic circuit included in each of the processing elements arranged in the first row, the corresponding first elements and the plurality of second elements input to the processing elements arranged in the first row by depth, wherein the corresponding first elements and the plurality of second elements are composed of equal number of plural depths, identify a depth among the plural depths in which a first element and a second element, among the compared corresponding first elements and the plurality of second elements input to the processing elements arranged in the first row, have a non-zero value, and input the first element and the second element corresponding to the identified depth into a calculator included in each of the processing elements arranged in the first row to perform a convolution operation. input corresponding first elements, among a plurality of first elements included in the object data, respectively into processing elements arranged in a first row among the plurality of processing elements, input a plurality of second elements, included in the kernel data, sequentially into the processing elements arranged in the first row to perform operations between the corresponding first elements and the plurality of second elements, compare, through a logic circuit included in each of the processing elements arranged in the first row, the corresponding first elements and the plurality of second elements input to the processing elements arranged in the first row by depth, wherein the corresponding first elements and the plurality of second elements are composed of equal number of plural depths, identify a depth among the plural depths in which a first element and a second element, among the compared corresponding first elements and the plurality of second elements input to the processing elements arranged in the first row, have a non-zero value, and input the first element and the second element corresponding to the identified depth into a calculator included in each of the processing elements arranged in the first row to perform a convolution operation.