Force protobuf>=5 for SavedModel export (#19206)

Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com>
This commit is contained in:
Mohammed Yasin 2025-02-12 20:38:13 +08:00 committed by GitHub
parent 1bb46cda4b
commit b9b315a1e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -986,6 +986,7 @@ class Exporter:
"tflite_support<=0.4.3" if IS_JETSON else "tflite_support", # fix ImportError 'GLIBCXX_3.4.29'
"flatbuffers>=23.5.26,<100", # update old 'flatbuffers' included inside tensorflow package
"onnxruntime-gpu" if cuda else "onnxruntime",
"protobuf>=5", # tflite_support pins <=4 but >=5 works
),
cmds="--extra-index-url https://pypi.ngc.nvidia.com", # onnx_graphsurgeon only on NVIDIA
)