commit | 54d2435d2a6f0ea0a80f8d6e020bbcd51c5afdfb | [log] [tgz] |
---|---|---|
author | Benoit Jacob <benoitjacob@google.com> | Wed Jan 15 12:54:21 2020 -0500 |
committer | Benoit Jacob <benoitjacob@google.com> | Tue Mar 10 16:42:27 2020 -0400 |
tree | 4f632f4f216c87c54ae928dfc8ac25020f97e36d | |
parent | 73c321455511ccdffe06ef5298bbc20842f091b5 [diff] |
Simplify ruy tests by removing the complicated logic determining quantized multipliers and clamp bounds. Now unconditionally doing what we used to do when QUICK_BENCHMARK=1 was passed. That was needed in practice to get quick results, as the old logic was very slow as it had to rely on a reference implementaiton of matmul (else it would have been very confusing when matmul regressed). This required a couple of tweaks, especially to float tolerance. Feeling confident that this is a reasonable relaxation of previously unnecessarily tight tolerance values. PiperOrigin-RevId: 289879473
This is not an officially supported Google product.
ruy is a matrix multiplication library. Its focus is to cover the matrix multiplication needs of neural network inference engines. Its initial user has been TensorFlow Lite, where it is used by default on the ARM CPU architecture.
ruy supports both floating-point and 8bit-integer-quantized matrices.
ruy is designed to achieve maximal performance not just on very large sizes, as is the focus of many established libraries, but on whatever are the actual sizes and shapes of matrices most critical in current TensorFlow Lite applications. This often means quite small sizes, e.g. 100x100 or even 50x50, and all sorts of rectangular shapes.
ruy is currently only optimized for the ARM architectures (both 64-bit and 32-bit code). Optimization for the Intel x86 architecture is in progress.
ruy is currently optimized only for the following combination of storage orders: LHS = row-major, RHS = column-major, destination = column-major. All other combinations of storage orders fall back to slow reference code at the moment.