Skip to content
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

Log as FP16 does not decode value #227

Closed
ataffanel opened this issue Apr 16, 2021 · 0 comments
Closed

Log as FP16 does not decode value #227

ataffanel opened this issue Apr 16, 2021 · 0 comments

Comments

@ataffanel
Copy link
Member

When logging as FP16 (to save space in the log packet), the raw value is decoded as an int16 instead of being converted to a regular float like expected.

Since Python 3.6, struct.pack/unpack supports fp16 with the flag "e". We should use it so that float variables can be logged as fp16.

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

No branches or pull requests

1 participant