Skip to content

Question about using the message-lite in Paddle #4542

@NHZlX

Description

@NHZlX

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions