From 0628a8c0136eebf3af8db7fd40b7aed94ff5d670 Mon Sep 17 00:00:00 2001 From: Jacob Bohlin Date: Fri, 28 Aug 2020 13:25:14 +0200 Subject: MLBEDSW-2567: CLI option to specify allocation alignment Added the CLI option. Only applies to CPU tensors. Added an AllocationError which is raised when Allocation fails. Signed-off-by: Jacob Bohlin Change-Id: I89164dea3ac7b7add7bc40aec2ce8fe50600105d --- OPTIONS.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OPTIONS.md') diff --git a/OPTIONS.md b/OPTIONS.md index fa5f4136..acda037a 100644 --- a/OPTIONS.md +++ b/OPTIONS.md @@ -256,6 +256,17 @@ in optimisations that use less SRAM, albeit at the cost of performance (inferenc vela network.tflite --weight-estimation-scaling=1.2 ``` +### Allocation alignment + +Controls the allocation byte alignment. Only affects CPU tensors, NPU tensors will remain 16-byte +aligned independent of this option. Alignment has to be a power of two and greater or equal to 16. +**Type: Integer** +**Default: 16** + +```bash +vela network.tflite --allocation-alignment 128 +``` + ## Verbose Print Options All of the options below are disabled by default and enabling them will add -- cgit v1.2.1