Skip to content
Snippets Groups Projects
README.md 1.01 KiB
Newer Older
# The ruy matrix multiplication library
Benoit Jacob's avatar
Benoit Jacob committed

This is not an officially supported Google product.
Benoit Jacob's avatar
Benoit Jacob committed

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.
Benoit Jacob's avatar
Benoit Jacob committed

ruy supports both floating-point and 8bit-integer-quantized matrices.
Benoit Jacob's avatar
Benoit Jacob committed

## Efficiency

Benoit Jacob's avatar
Benoit Jacob committed
ruy is designed to achieve high performance not just on very large sizes, as
Benoit Jacob's avatar
Benoit Jacob committed
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
Benoit Jacob's avatar
Benoit Jacob committed
rectangular shapes. It's not as fast as completely specialized code for each
shape, but it aims to offer a good compromise of speed across all shapes and a
small binary size.
Benoit Jacob's avatar
Benoit Jacob committed
Some documentation will eventually be available in the doc/ directory, see
[doc/README.md](doc/README.md).