Skip to content

Consolidation of Selective Build APIs for OSS聽#11921

Description

@BujSet

馃殌 The feature, motivation and pitch

Currently, there are three ways a user can enable the selective build process:

  1. Disable selective build and include all operators.
  2. Specify a string list of operators.
  3. Provide a YAML file to enumerate which operators and dtypes should be included.
  4. Provide a exported model (pte) to tailor the executorch build to the operators and tensor dtypes used in the model.

Right now, these APIs are treated as mutually exclusive, but there are use cases where a mixture of methods would be desirable. It would be ideal if there was a clearer/default way to enable selective builds without exposing too much of the configuration burden onto a user.

Example Use Case

A user wants to run two different models, where the second model only contains one differing operator. The user could determine the complete union of operators used by the two models, and manually specify them using the list API, but it would be easier if they could simply pass in one of the models and augment the selected operator set with the single differing operator (i.e. use the model API in conjunction with the list API).

Alternatives

No response

Additional context

No response

RFC (Optional)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions