Skip to content

Commit

Permalink
Change comparison to pass linting
Browse files Browse the repository at this point in the history
The linter was updated, so I needed to fix
a small style issue as a result.

Change-Id: Ia3c954565a00de92e7fb1912eae9ed9875d60c7c
  • Loading branch information
mbaret committed Feb 10, 2020
1 parent 7e69839 commit 5b7f549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ class _FlexBufferType(IntEnum):
value_offset = -value_vector_offset + i*num_bytes
value_bytes = buffer[value_offset:value_offset+num_bytes]
if flex_type == _FlexBufferType.FBT_BOOL:
value = True if value_bytes[0] else False
value = bool(value_bytes[0])
if flex_type == _FlexBufferType.FBT_INT:
value = struct.unpack("<i", value_bytes)[0]
if flex_type == _FlexBufferType.FBT_UINT:
Expand Down

0 comments on commit 5b7f549

Please sign in to comment.