Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Bytes/repeated value not parsed, RangeError #513
Ran into this whilst trying to parse the TensorProtos produced by Tensorflow.
However, when parsing with protobufjs 5, the message is parsed correctly.
If I modify TensorProto to be
The message is parsed correctly (but missing the floatVal, as it's been commented out)
Seems that there is an issue with packed repeated fields with float / double types.
Can you try to inject the following right before loading your proto?
protobuf.types.packed.double = 1; protobuf.types.packed.float = 5;
Please let me know if this fixes your issue.