In a neural network apparatus for performing a neural network operation according to an exemplary embodiment of the present disclosure, a first multiplier, a second multiplier, an alignment shifter, and an adder configured to be shared by the first multiplier and the second multiplier, an arithmetic circuit configured to perform a first dot product operation on floating-point data pairs of Obtaining a plurality of mantissa multiplication operation results for each of the floating-point data pairs of After sorting and shifting the plurality of mantissa multiplication operation results, the first accumulated data is output by summing the sorted mantissa multiplication operation results using an adder, and in the second dot product operation, the second multiplier is used and obtaining a plurality of integer multiplication operation results for each of the plurality of integer data pairs, and summing the plurality of integer multiplication operation results using an adder to output second accumulated data.
展开▼