Skip to content

Add deprecation message for constant buffer branch #12295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions runtime/executor/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,16 @@ Result<executorch_flatbuffer::ExecutionPlan*> get_execution_plan(
} else {
// The constant data is stored inside the flatbuffer, so this program does
// not contain a separate segment for it.

// NOTE: This branch is deprecated from ExecuTorch 0.7 onwards.
// Please regenerate your PTE file to ensure newer ExecuTorch runtimes can
// support it. ExecuTorch deprecation policy:
// https://docs.pytorch.org/executorch/stable/api-life-cycle.html#deprecation-policy.
// For support, contact the PyTorch Edge team or make an issue in:
// https://github.com/pytorch/executorch/issues.
ET_LOG(
Error,
"!!DEPRECATED!! This branch is deprecated from ExecuTorch 0.7; re-export this PTE file to ensure support on newer runtimes.");
return Program(
loader,
segment_base_offset,
Expand Down
Loading