Skip to content

Conversation

@veblush
Copy link
Collaborator

@veblush veblush commented Jan 31, 2026

Replaced union-based type punning with std::memcpy in quantization_util.cc. Accessing a union member different from the one written to is undefined behavior in C++ (Strict Aliasing Rule).

This is not supposed to get merged as this needs tflite-side change.

BUG=n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants