Closed
Description
What is the purpose that Google.Protobuf.CodedInputStream.RecursionLimit
is set 10
at the following code?
It is set 100
by default in protocol-buffers C#-wrapper.
internal const int DefaultRecursionLimit = 100;
I could not load some network / .onnx
file by the following exception be caused by RecursionLimit = 10
without the monkey-patched Microsoft.ML.OnnxTransformer.dll
.
Google.Protobuf.InvalidProtocolBufferException: Protocol message had too many levels of nesting. May be malicious. Use CodedInputStream.SetRecursionLimit() to increase the depth limit.
I think that the networks are including Inception
construction especially.
(ex. tensorflow/models`s Faster-RCNN-Inception-V2 converted)
Thank you for coding great tools!