Skip to content

3/x: Wire LoadBackendOptionsMap through Program and Method#17531

Open
metascroy wants to merge 1 commit intopytorch:mainfrom
metascroy:export-D92461088
Open

3/x: Wire LoadBackendOptionsMap through Program and Method#17531
metascroy wants to merge 1 commit intopytorch:mainfrom
metascroy:export-D92461088

Conversation

@metascroy
Copy link
Contributor

Summary:
This diff wires the LoadBackendOptionsMap through the executor layer, connecting Program::load_method() and Method to accept and route backend options to delegates.

Key changes:

  • Program::load_method() now accepts optional LoadBackendOptionsMap* parameter
  • Method stores reference to the options map and looks up options by backend ID
  • When initializing delegates, the runtime queries the map for backend-specific options and passes them to BackendInitContext

This enables the end-to-end flow:

Module::load(method_name, options_map)
  → Program::load_method(..., options_map)
    → Method initialization
      → Backend delegate init with runtime_specs from options_map

Reviewed By: larryliu0820

Differential Revision: D92461088

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 18, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17531

Note: Links to docs will display an error until the docs builds have been completed.

❌ 6 New Failures, 31 Pending

As of commit 20af563 with merge base 0c87468 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 18, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 18, 2026

@metascroy has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92461088.

Copy link
Contributor

@larryliu0820 larryliu0820 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@github-actions
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

metascroy added a commit to metascroy/executorch that referenced this pull request Feb 19, 2026
…7531)

Summary:

This diff wires the `LoadBackendOptionsMap` through the executor layer, connecting `Program::load_method()` and `Method` to accept and route backend options to delegates.

Key changes:
- `Program::load_method()` now accepts optional `LoadBackendOptionsMap*` parameter
- `Method` stores reference to the options map and looks up options by backend ID
- When initializing delegates, the runtime queries the map for backend-specific options and passes them to `BackendInitContext`

This enables the end-to-end flow:
```
Module::load(method_name, options_map)
  → Program::load_method(..., options_map)
    → Method initialization
      → Backend delegate init with runtime_specs from options_map
```

Reviewed By: larryliu0820

Differential Revision: D92461088
metascroy added a commit to metascroy/executorch that referenced this pull request Feb 19, 2026
…7531)

Summary:

This diff wires the `LoadBackendOptionsMap` through the executor layer, connecting `Program::load_method()` and `Method` to accept and route backend options to delegates.

Key changes:
- `Program::load_method()` now accepts optional `LoadBackendOptionsMap*` parameter
- `Method` stores reference to the options map and looks up options by backend ID
- When initializing delegates, the runtime queries the map for backend-specific options and passes them to `BackendInitContext`

This enables the end-to-end flow:
```
Module::load(method_name, options_map)
  → Program::load_method(..., options_map)
    → Method initialization
      → Backend delegate init with runtime_specs from options_map
```

Reviewed By: larryliu0820

Differential Revision: D92461088
metascroy added a commit to metascroy/executorch that referenced this pull request Feb 19, 2026
…7531)

Summary:

This diff wires the `LoadBackendOptionsMap` through the executor layer, connecting `Program::load_method()` and `Method` to accept and route backend options to delegates.

Key changes:
- `Program::load_method()` now accepts optional `LoadBackendOptionsMap*` parameter
- `Method` stores reference to the options map and looks up options by backend ID
- When initializing delegates, the runtime queries the map for backend-specific options and passes them to `BackendInitContext`

This enables the end-to-end flow:
```
Module::load(method_name, options_map)
  → Program::load_method(..., options_map)
    → Method initialization
      → Backend delegate init with runtime_specs from options_map
```

Reviewed By: larryliu0820

Differential Revision: D92461088
metascroy added a commit to metascroy/executorch that referenced this pull request Feb 19, 2026
…7531)

Summary:

This diff wires the `LoadBackendOptionsMap` through the executor layer, connecting `Program::load_method()` and `Method` to accept and route backend options to delegates.

Key changes:
- `Program::load_method()` now accepts optional `LoadBackendOptionsMap*` parameter
- `Method` stores reference to the options map and looks up options by backend ID
- When initializing delegates, the runtime queries the map for backend-specific options and passes them to `BackendInitContext`

This enables the end-to-end flow:
```
Module::load(method_name, options_map)
  → Program::load_method(..., options_map)
    → Method initialization
      → Backend delegate init with runtime_specs from options_map
```

Reviewed By: larryliu0820

Differential Revision: D92461088
…7531)

Summary:

This diff wires the `LoadBackendOptionsMap` through the executor layer, connecting `Program::load_method()` and `Method` to accept and route backend options to delegates.

Key changes:
- `Program::load_method()` now accepts optional `LoadBackendOptionsMap*` parameter
- `Method` stores reference to the options map and looks up options by backend ID
- When initializing delegates, the runtime queries the map for backend-specific options and passes them to `BackendInitContext`

This enables the end-to-end flow:
```
Module::load(method_name, options_map)
  → Program::load_method(..., options_map)
    → Method initialization
      → Backend delegate init with runtime_specs from options_map
```

Reviewed By: larryliu0820

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

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments