-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TFLite] Mimic the TFLite 2.4 reader's behaviour #8538
Conversation
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
That's how TFLite's reader does it - https://github.com/tensorflow/tensorflow/blob/7d2f189d314018722ea801293de102480c8fbc62/tensorflow/lite/schema/schema_utils.cc |
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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
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
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.