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

Issues with encoding of dictionaries #233

Closed
JamieMair opened this issue Jul 18, 2023 · 1 comment
Closed

Issues with encoding of dictionaries #233

JamieMair opened this issue Jul 18, 2023 · 1 comment

Comments

@JamieMair
Copy link
Contributor

While working on another feature for TensorBoardLogger.jl, I had to write a workaround encoder for dictionaries (see the code here). I think I was able to track down the discrepancy between ProtoBuf.jl and the protocol in files one, two and three, where Dict objects are encoded and decoded.

Looking at the protobuf documentation, it seems that dictionaries (or maps in their terms) is made up of repeated messages of key-value pairs (docs link). At least in Tensorboard, they expect each key-value pair to be a repeated message in a dictionary field.

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

2 participants