Skip to content

Commit 5bf7231

Browse files
authored
Revert "Arm backend: Add tosa_spec and et-version info to .tosa files (#9308)"
This reverts commit 28673ad.
1 parent f86d7e3 commit 5bf7231

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

backends/arm/test/misc/test_debug_feats.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import shutil
1010
import tempfile
1111
import unittest
12-
from importlib.metadata import version
1312

1413
import torch
1514
from executorch.backends.arm.test import common
@@ -193,16 +192,15 @@ def test_collate_tosa_BI_tests(self):
193192
.to_edge_transform_and_lower()
194193
.to_executorch()
195194
)
196-
et_version = version("executorch")
197195
# test that the output directory is created and contains the expected files
198196
assert os.path.exists(
199197
"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests"
200198
)
201199
assert os.path.exists(
202-
f"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests/output_tag6_TOSA-0.80+BI_{et_version}.tosa"
200+
"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests/output_tag6.tosa"
203201
)
204202
assert os.path.exists(
205-
f"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests/desc_tag6_TOSA-0.80+BI_{et_version}.json"
203+
"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests/desc_tag6.json"
206204
)
207205

208206
os.environ.pop("TOSA_TESTCASES_BASE_PATH")

backends/arm/tosa_backend.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#
1313
import logging
1414
import os
15-
from importlib.metadata import version
1615
from typing import cast, final, List
1716

1817
import serializer.tosa_serializer as ts # type: ignore
@@ -126,12 +125,10 @@ def preprocess( # noqa: C901
126125

127126
if artifact_path:
128127
tag = _get_first_delegation_tag(graph_module)
129-
et_version = version("executorch")
130128
dbg_tosa_dump(
131129
tosa_graph,
132130
artifact_path,
133-
suffix="{}".format(f"_{tag}" if tag else "")
134-
+ (f"_{tosa_spec}" + (f"_{et_version}")),
131+
suffix="{}".format(f"_{tag}" if tag else ""),
135132
)
136133

137134
# Serialize and return the TOSA flatbuffer.

0 commit comments

Comments
 (0)