We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6065388 commit 9dbf608Copy full SHA for 9dbf608
tfliteiorewriter/main.py
@@ -103,7 +103,7 @@ def rewrite(
103
flat_json = json.load(f)
104
105
# Checks if signature_defs are recorded in tflite
106
- if 'signature_defs' not in flat_json:
+ if 'signature_defs' not in flat_json or not flat_json['signature_defs']:
107
print(
108
f'{Color.YELLOW}WARNING:{Color.RESET} ' +
109
f'Processing is aborted because signature_defs is not recorded in tflite.'
0 commit comments