Skip to content

Commit bf53cc8

Browse files
authored
[tflitefile-tool] Update tool for tflite-selector (#16474)
This commit updates tflitefile-tools to enable tflite-selector. - Change required python from 3.10 to 3.12: `pkg_resources` requires setuptools from python 3.12 - Add explicit setuptools version dependency: using `pkg_resources` make warning message about `pkg_resources` deprecatationon on latest version - Removing unused args parameter - Update uv.lock to reflect the version change ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
1 parent 5fd2b96 commit bf53cc8

File tree

3 files changed

+16
-95
lines changed

3 files changed

+16
-95
lines changed

tools/tflitefile_tool/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ name = "tflitefile-tool"
77
version = "1.0.0"
88
description = "Tool for parsing and analyzing TFLite model files"
99
readme = "README.md"
10-
requires-python = ">=3.10"
10+
requires-python = ">=3.12"
1111
dependencies = [
1212
"flatbuffers==23.5.26", # Same version with runtime/infra/buildtool/CMakeLists.txt
1313
"numpy>=2.0",
14+
"setuptools==79.0.1"
1415
]
1516

1617
[project.scripts]

tools/tflitefile_tool/src/tflitefile_tool/select_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ def StoreIOInfo(path, used_tensors, org_inputs, org_outputs, new_inputs, new_out
13051305
json_file.write(f'{json.dumps(ioinfo, indent=2)}\n')
13061306

13071307

1308-
def main(args):
1308+
def main():
13091309
# Define argument and read
13101310
arg_parser = argparse.ArgumentParser()
13111311
arg_parser.add_argument("input_model",

0 commit comments

Comments
 (0)