| CPC G06F 9/5027 (2013.01) [G06F 7/72 (2013.01)] | 17 Claims |

|
1. A device comprising:
a processor;
a non-transitory computer-readable memory comprising instructions executable by the processor to cause the processor to perform one or more operations associated with at least one of an input to or an output from a neural network; and
a neural network accelerator configured to implement, in hardware, at least a part of the neural network by using a residue number system (RNS), wherein:
at least one function of the neural network has a corresponding approximation in the RNS,
the at least one function is provided by implementing the corresponding approximation in hardware, and
the operations include:
receiving the input,
performing a base extension on the input,
generating a mapped value based on the base extension, and
determining an index by at least using the mapped value and a lookup table operation.
|