commit | c6a65efcc42cbed6db9c2c10194a5b0b7600be42 | [log] [tgz] |
---|---|---|

author | benoitjacob <benoitjacob@google.com> | Fri Apr 24 20:21:49 2020 |

committer | Copybara-Service <copybara-worker@google.com> | Wed Apr 29 18:38:28 2020 |

tree | 3911b49f1b86c3920109d075955ca8ee2c3f9217 | |

parent | 0ad580f6721912047c3612f4b202f3aabf8bdea9 [diff] |

Use the new ruy API for caching constant matrices. PiperOrigin-RevId: 308313346

- ruy/context.cc[diff]
- ruy/context.h[diff]
- ruy/context_test.cc[diff]
- ruy/ctx.cc[diff]
- ruy/ctx.h[diff]
- ruy/ctx_impl.h[diff]
- ruy/dispatch.h[diff]
- ruy/mat.h[diff]
- ruy/matrix.h[diff]
- ruy/matrix_test.cc[diff]
- ruy/prepacked_cache.h[diff]
- ruy/prepacked_cache_test.cc[diff]
- ruy/side_pair.h[diff]

13 files changed

tree: 3911b49f1b86c3920109d075955ca8ee2c3f9217

README.md

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.