diff --git a/python/tvm/relay/frontend/tflite.py b/python/tvm/relay/frontend/tflite.py index fbfa1fcd1563..5650d99ab350 100644 --- a/python/tvm/relay/frontend/tflite.py +++ b/python/tvm/relay/frontend/tflite.py @@ -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("