Skip to content

Conversation

@neiljohari
Copy link
Contributor

Summary

When I run the protobuf training tool, if we have a proto field that's optional and all samples are missing it then since we iterate over all ACE graphs we will fail (no samples).

I think for optional/rarely-used fields, it's fine to skip and use default compression for those.

Also fixes a bug in the protobuf CLI class where we had #ifdef ZL_IS_FBCODE. This triggers even if ZL_IS_FBCODE=0, where we should actually check if it's true. This was causing compilation issues for me.

Type of Change

Bug fix (non-breaking change which fixes an issue)

Test Plan

protobuf_cli train --input training_data/ --output trained.zlc where training_data has all samples missing some proto field

@meta-cla meta-cla bot added the cla signed label Feb 5, 2026
@neiljohari neiljohari marked this pull request as ready for review February 5, 2026 00:40
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.

1 participant