Age | Commit message (Collapse) | Author |
|
Added basic TOSA support, enabling Vela to
read and compile a .tosa file corresponding to
CONV2D + Rescale + Clamp, and writing it to an
optimized .tflite file.
The optimized .tflite file, will in this case, hold
a commandstream where the Rescale and Clamp has been
fused into the CONV2D.
The optimized tflite file is not output from Vela.
-Added support to read .tosa file into Vela
internal structure.
- Added tosa_reader.py, tosa_mapper.py and
helper files stored under tosa/
- Support for this limited to ~10 ops
-Added reader_util.py for functions common
for TOSA and TFLite
-Added tosa_graph_optimiser.py
-Added support to fuse Rescale into convolution
-Modified handling for padding
-Added support to fuse Clamp to previous op
-Added graph_optimiser_util.py
-Moved functions common for TOSA/TFLite graph
optimization to this file.
-Renamed graph_optimiser.py to tflite_graph_optmiser.py
-Added separate tosa_supported_operators.py
-Added supported_operator_util.py
-For functions in common for TOSA/TFLite
Signed-off-by: Patrik Gustavsson <patrik.gustavsson@arm.com>
Change-Id: Ic3c540504ec8c5eb4771397fdc6882050ecf33ab
|
|
Added pylint to pre-commit, but enabled only for scanning W0102
"dangerous-default-value".
Signed-off-by: Michael McGeagh <michael.mcgeagh@arm.com>
Change-Id: I49b887f6b862dd05fdcb465ae5097e5c2dc335aa
|
|
The latest "stable" version of Black formats code
differently from the 19.10b0 version that has been
used in the past, which introduces unwelcome
formatting changes in newer commits.
This commit explicitly sets the revision to
19.10b0.
It also changes the repo parameter to point to the
new URL.
Signed-off-by: Dwight Lidman <dwight.lidman@arm.com>
Change-Id: I20c73f0c87434143f62282f5f0399f73cedfd6ce
|
|
- Corrected name in config file
Signed-off-by: Tim Hall <tim.hall@arm.com>
Change-Id: I245571605173466d08ea2a2139444fc9ff519d3b
|
|
Moved len1_array_to_scalar from a nested function to a staticmethod
of TFLiteSubgraph.
Change-Id: I182f0b70f03070855c1a4478d26644892c1ebb15
Signed-off-by: Diego Russo <diego.russo@arm.com>
|
|
Pytest (testing framework) and pytest-cov are now part of the python
environment and run automatically by pre-commit hook.
Change-Id: If55cae9f29391c80c809a0487785786a7b9ae62a
Signed-off-by: Diego Russo <diego.russo@arm.com>
|
|
Also updated README.md
Change-Id: I118309c61f4d00e8508d6b888c606995490fba39
Signed-off-by: Diego Russo <diego.russo@arm.com>
|
|
Use pre-commit framework [1] to run black and flake8 before the commit.
black and flake8 are managed by the pre-commit framework and they can be
run manually by the user using `pre-commit run` command.
Fix the code base with the help of black and flake8.
Fix import statements according to PEP8 guidelines [1]
Both tools have the following settings (specified in the pre-commit
configuration file):
* line length: 120 characters
* directory to exclude: ethosu/vela/tflite/ and ethosu/vela/ethos_u55_regs
Updated README.md on how to install pre-commit and how to run sanity checks.
Pipenv files have been updated including new dependencies for pre-commit.
[1]: https://www.python.org/dev/peps/pep-0008/#imports
[2]: https://github.com/pre-commit/pre-commit
Change-Id: I304d9fffdf019d390ffa396a529c8a7c2437f63d
Signed-off-by: Diego Russo <diego.russo@arm.com>
|