Skip to content

Update CompiledModel::CreateInputBuffers() and CompiledModel::CreateOutputBuffers()#6721

Merged
copybara-service[bot] merged 1 commit into
mainfrom
litert_pr_893695151
Apr 6, 2026
Merged

Update CompiledModel::CreateInputBuffers() and CompiledModel::CreateOutputBuffers()#6721
copybara-service[bot] merged 1 commit into
mainfrom
litert_pr_893695151

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented Apr 2, 2026

Update CompiledModel::CreateInputBuffers() and CompiledModel::CreateOutputBuffers()

Fix them to respect alignment in the TensorBufferRequirements by using
LiteRtCreateManagedTensorBufferFromRequirements() C API.

This PR fixes #5373.

@copybara-service copybara-service Bot force-pushed the litert_pr_893695151 branch 3 times, most recently from 312b1a9 to 5dfb14a Compare April 2, 2026 22:30
@copybara-service copybara-service Bot force-pushed the litert_pr_893695151 branch 5 times, most recently from 26f3db4 to 9c1756b Compare April 6, 2026 23:25
…utputBuffers()

Fix them to respect alignment in the TensorBufferRequirements by using
LiteRtCreateManagedTensorBufferFromRequirements() C API.

This PR fixes #5373.

LiteRT-PiperOrigin-RevId: 895559400
@copybara-service copybara-service Bot force-pushed the litert_pr_893695151 branch from 9c1756b to fe1395e Compare April 6, 2026 23:37
@copybara-service copybara-service Bot merged commit fe1395e into main Apr 6, 2026
@copybara-service copybara-service Bot deleted the litert_pr_893695151 branch April 6, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot create managed on-host memory with the alignment specified in buffer_requirements

1 participant