CPC G06N 3/048 (2023.01) | 16 Claims |
10. An apparatus comprising:
a programmable activation function (PAF) unit including at least one comparator; and
a processor including a central processing unit (CPU) as a computing device formed by hardware, the processor configured to:
provide at least one activation function and hardware information of the PAF unit to a PAF generator, the hardware information including information on a number of the at least one comparator in the PAF unit; and
operate the PAF generator to:
generate segment data for segmenting the at least one activation function, the segment data including derivative data of the at least one activation function;
determine a substantially linear section or a non-linear section of the at least one activation function based on the derivative data of the at least one activation function;
segment the at least one activation function into a plurality of segments using the segment data; and
approximate at least one segment of the plurality of segments as a programmable segment including a programmable parameter, the programmable segment corresponding to the at least one activation function,
wherein the programmable segment is programmed by the PAF generator.
|