A data output method, wherein the method comprises: reading a first data sub-block, and splicing the first data sub-block into a continuous data stream, wherein the first data sub-block is a data sub-block in transferred data in a neural network; compressing (S 102) the continuous data stream to acquire a second data sub-block; determining, according to a length of the first data sub-block and a length of the second data sub-block, whether there is a gain in compression of the continuous data stream; outputting (S 104) the second data sub-block to a storage if there is the gain in the compression of the continuous data stream; wherein determining (S 103), according to the length of the first data sub-block and the length of the second data sub-block, whether there is the gain in the compression of the continuous data stream comprises: calculating, according to the length of the first data sub-block, a destination address and a bus bit-width of the storage, the number of beats required for transferring the first data sub-block; calculating, according to the length of the second data sub-block, the destination address and the bus bit-width of the storage, the number of beats required for transferring the second data sub-block; determining, if the number of beats required for transferring the second data sub-block is less than the number of beats required for transferring the first data sub-block, that there is the gain in the compression of the continuous data stream, otherwise, determining that there is no gain in the compression of the continuous data stream, wherein the destination address is a destination address of the first data sub-block. reading a first data sub-block, and splicing the first data sub-block into a continuous data stream, wherein the first data sub-block is a data sub-block in transferred data in a neural network; compressing (S 102) the continuous data stream to acquire a second data sub-block; determining, according to a length of the first data sub-block and a length of the second data sub-block, whether there is a gain in compression of the continuous data stream; outputting (S 104) the second data sub-block to a storage if there is the gain in the compression of the continuous data stream; wherein determining (S 103), according to the length of the first data sub-block and the length of the second data sub-block, whether there is the gain in the compression of the continuous data stream comprises: calculating, according to the length of the first data sub-block, a destination address and a bus bit-width of the storage, the number of beats required for transferring the first data sub-block; calculating, according to the length of the second data sub-block, the destination address and the bus bit-width of the storage, the number of beats required for transferring the second data sub-block; determining, if the number of beats required for transferring the second data sub-block is less than the number of beats required for transferring the first data sub-block, that there is the gain in the compression of the continuous data stream, otherwise, determining that there is no gain in the compression of the continuous data stream, wherein the destination address is a destination address of the first data sub-block. calculating, according to the length of the first data sub-block, a destination address and a bus bit-width of the storage, the number of beats required for transferring the first data sub-block; calculating, according to the length of the second data sub-block, the destination address and the bus bit-width of the storage, the number of beats required for transferring the second data sub-block; determining, if the number of beats required for transferring the second data sub-block is less than the number of beats required for transferring the first data sub-block, that there is the gain in the compression of the continuous data stream, otherwise, determining that there is no gain in the compression of the continuous data stream, wherein the destination address is a destination address of the first data sub-block.