Skip to content

Commit fc0e625

Browse files
Jerry-Gefacebook-github-bot
authored andcommitted
Pin all TOSA components to v0.80 (#1701)
Summary: - Pin TOSA serialization_lib to `branch` v0.80 - Pin TOSA reference_model to `branch` v0.80 - Fix any affected changes I accidentally changed the serialization_lib hash in this patch: 99f912a#diff-099ad350604656a18b4146f6f297241b6d294a0650882968029fb1f574267f0d Pin all TOSA components to `branch` v0.80. Hope we can have a stable development setup for a certain period of time. Previously, serialization_lib was pinned to a `tag`, reference_model was pinned to a `branch`. There can be a debate about whether to use tag or branch but at least I think we should make them consistent. Serialization_lib: https://review.mlplatform.org/plugins/gitiles/tosa/serialization_lib/ Reference_model: https://review.mlplatform.org/plugins/gitiles/tosa/reference_model/ Pull Request resolved: #1701 Reviewed By: cccclai Differential Revision: D53112872 Pulled By: guangy10 fbshipit-source-id: 77baf691735f8992507556f117932229c253ecfd
1 parent 52ea3c6 commit fc0e625

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

backends/arm/test/arm_tosa_reference.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 Arm Limited and/or its affiliates.
1+
# Copyright 2023-2024 Arm Limited and/or its affiliates.
22
#
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
@@ -14,12 +14,13 @@
1414
from executorch.backends.arm.arm_partitioner import ArmPartitioner
1515
from executorch.backends.arm.test.test_models import TestList, TosaProfile
1616
from executorch.backends.arm.test.test_tosa import prepare_model_and_ref
17-
1817
from executorch.exir.backend.compile_spec_schema import CompileSpec
19-
from executorch.exir.capture._config import ExecutorchBackendConfig, to_edge
18+
from executorch.exir.capture._config import ExecutorchBackendConfig
2019

2120
from executorch.exir.dialects._ops import ops as exir_ops
2221

22+
from executorch.exir.program import to_edge
23+
2324
from torch.export import export
2425

2526
# Assumes you have these two tools on your path
Submodule serialization_lib updated from 92358fc to bd8c529
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 394636ef2063e386f54abde094298bb0e40a2cb7 Mon Sep 17 00:00:00 2001
2+
From: Zingo Andersen <[email protected]>
3+
Date: Sat, 20 Jan 2024 10:34:45 +0100
4+
Subject: [PATCH 2/2] Use TOSA 0.80.1
5+
6+
Signed-off-by: Zingo Andersen <[email protected]>
7+
---
8+
ethosu/vela/tosa_reader.py | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/ethosu/vela/tosa_reader.py b/ethosu/vela/tosa_reader.py
12+
index 56af59d..7cb2bf3 100644
13+
--- a/ethosu/vela/tosa_reader.py
14+
+++ b/ethosu/vela/tosa_reader.py
15+
@@ -294,7 +294,7 @@ class TosaGraph:
16+
def check_version(self, tosa_graph):
17+
version = tosa_graph.Version()
18+
version_str = f"{version._Major()}.{version._Minor()}.{version._Patch()}"
19+
- if version_str != "0.80.0":
20+
+ if version_str != "0.80.1":
21+
print(f"Unsupported TOSA version: {version_str}")
22+
assert False
23+
24+
--
25+
2.25.1
26+

examples/arm/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function setup_tosa_reference_model() {
167167
# errors for the early codebase
168168
cd "${root_dir}"
169169
if [[ ! -e reference_model ]]; then
170-
git clone https://review.mlplatform.org/tosa/reference_model -b main
170+
git clone https://review.mlplatform.org/tosa/reference_model v0.80
171171
cd reference_model
172172
git submodule update --init --recursive
173173
cd ..

0 commit comments

Comments
 (0)