Skip to content

Conversation

@ekalda
Copy link
Contributor

@ekalda ekalda commented Jul 23, 2021

In TFLite 2.4, the builtin code value can be either in
"deprecated_builtin_code" field or "builtin_code" field (as long
as the value is less than 127) and similarly to the TFLite's
reader, we should use the higher value of the two.

In TFLite 2.4, the builtin code value can be either in
"deprecated_builtin_code" field or "builtin_code" field (as long
as the value is less than 127) and similarly to the TFLite's
reader, we should use the higher value of the two.

Change-Id: I0d738f9257187903b4c5b4cc5a8733a451ddc02e
@ekalda
Copy link
Contributor Author

ekalda commented Jul 23, 2021

@ekalda
Copy link
Contributor Author

ekalda commented Jul 23, 2021

@u99127

@u99127
Copy link

u99127 commented Jul 23, 2021

I see - this allows us to consume models produced by old writers and new writers which may or may not set the fields correctly.

LGTM,
Ramana

Copy link

@u99127 u99127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@leandron leandron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@leandron leandron merged commit 9c63f4f into apache:main Jul 26, 2021
@leandron
Copy link
Contributor

This is merged now, thanks @ekalda @u99127!

@ekalda ekalda deleted the tflite_reader_fix branch July 26, 2021 11:24
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
In TFLite 2.4, the builtin code value can be either in
"deprecated_builtin_code" field or "builtin_code" field (as long
as the value is less than 127) and similarly to the TFLite's
reader, we should use the higher value of the two.

Change-Id: I0d738f9257187903b4c5b4cc5a8733a451ddc02e
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
In TFLite 2.4, the builtin code value can be either in
"deprecated_builtin_code" field or "builtin_code" field (as long
as the value is less than 127) and similarly to the TFLite's
reader, we should use the higher value of the two.

Change-Id: I0d738f9257187903b4c5b4cc5a8733a451ddc02e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants