Skip to content

Commit

Permalink
Sync from tflite-micro at b671143.
Browse files Browse the repository at this point in the history
Signed-off-by: CFU-Playground-Bot <cfu-playground-bot@google.com>
  • Loading branch information
cfu-playground-bot committed Aug 31, 2022
1 parent 6b0eeec commit 5a1e227
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/tflite-micro.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3136969
b671143
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import textwrap
import traceback
from typing import NamedTuple, Optional
from pathlib import Path

## Shell command utility method

Expand Down Expand Up @@ -606,7 +607,10 @@ def compare_sizes(config: ConfigData) -> None:
"""

# Calculate size
size_tf = os.path.getsize(config.MODEL_TF)
size_tf = sum(
map(lambda p: p.stat().st_size,
filter(Path.is_file,
Path(config.MODEL_TF).rglob('*'))))
size_no_quant_tflite = os.path.getsize(config.MODEL_NO_QUANT_TFLITE)
size_quant_tflite = os.path.getsize(config.MODEL_QUANT_TFLITE)

Expand Down

0 comments on commit 5a1e227

Please sign in to comment.