Data processing method and apparatus

The present application discloses a data processing method and apparatus. DETAILED DESCRIPTION The method comprises: processing input data to be received pretreatment; activation function results obtained by linear fit to obtain the memory address to be configured parameter processing input data according to a result of the pretreatment and, wherein the configuration parameter is a characteristic curve of a preset activation function; obtaining configuration parameters of the input data to be processed in accordance with the memory address; input data to be processed in accordance with the configuration parameters and the circuit configuration of the preset pre-processing result of said input data to be processed to obtain the processing result. This embodiment implements a circuit configuration using the configuration parameters to achieve a preset processing input data be treated, without using dedicated circuitry for achieving activation function, thereby simplifying the circuit configuration, and can support multiple simultaneous activation function, increased flexibility.