-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
Description
I’m working on reducing the dynamic libraries of capi for paddle deploying on mobile.
If we use protobuf-lite.a, that is, set option optimize_for = LITE_RUNTIME(defalut is SPEED) in proto. The generated class in *.pb.h will Inherit from Message_lite not the
Message, it will greatly reduce the size of the library.
I haven't found how to dynamically set this option from Official document
I see the option optimize_for = LITE_RUNTIME already setted in OptimizerConfig.proto, but not in other proto files. For examples, ModelConfig.proto. But I find no where use the interface of Message in our paddle code. Can we set all them option optimize_for = LITE_RUNTIME, if not, why?
I think this also should be taken into consideration by the new paddle