Skip to content

Commit

Permalink
Merge pull request #911 from andresovela/xformer-docs
Browse files Browse the repository at this point in the history
Improve xformer build instructions
  • Loading branch information
panickal-xmos authored Jul 19, 2024
2 parents 592afc2 + b50035e commit f6a8eb7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions xformer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@ mentioned [here](https://github.com/xmos/ai_tools#readme) and
have followed all steps including installing the necessary Python
packages from `requirements.txt`.

With Bazel installed (check `.bazelversion` for current version),
you can build with the following command (make sure you run it
from the directory /ai_tools/xformer):
Also note that submodules need to be cloned and tflite-micro needs to be patched before building `xformer`.
The following command should be run from this repo's root:

./build.sh -T init

See instructions [here](https://github.com/xmos/ai_tools/blob/develop/docs/rst/build-from-source.rst)

With Bazel installed (check `.bazelversion` for current version or use [bazelisk](https://github.com/bazelbuild/bazelisk) which handles this for you),
you can build with the following command (make sure you run it from the directory /ai_tools/xformer):

bazel build //:xcore-opt

or if you are using bazelisk:

bazelisk build //:xcore-opt

To run the binary on an input tflite file:

./bazel-bin/xcore-opt <input_file.tflite> -o <output_file.tflite>
Expand Down

0 comments on commit f6a8eb7

Please sign in to comment.