A method for a floating-point operation using an apparatus for a DNN operation comprising a preprocessor configured to perform preprocessing on a predetermined number of pieces of grouped and input floating-point data for a floating-point operation, a CIM operator configured to perform a fixed-point operation on inlier data, an NPU operator configured to perform a floating-point operation on outlier data, and an aggregation core configured to sum and output an operation result of each of the CIM operator and the NPU operator, the method comprising:
- a preprocessing step of classifying, by the preprocessor, outlier data and inlier data from a predetermined number of pieces of grouped and input floating-point data and performing presorting on the inlier data;
- a CIM operation step of performing, by the CIM operator, a fixed-point operation on the inlier data;
- an NPU operation step of receiving, by the NPU operator, the outlier data and corresponding input channel information from the preprocessor and performing a floating-point operation on the outlier data;
- and
- an aggregation step of summing and outputting, by the aggregation core, an operation result of each of the CIM operation step and the NPU operation step,
- wherein the NPU operation step comprises reading a weight for each input channel for the floating-point operation on the outlier data through a separate transmission line implemented in the CIM operator, and causing the outlier data to be processed in parallel with an operation cycle of the inlier data.