Skip to content

Update output objects to support batching#975

Merged
kvablack merged 1 commit into
Physical-Intelligence:mainfrom
verityw:main
Jun 16, 2026
Merged

Update output objects to support batching#975
kvablack merged 1 commit into
Physical-Intelligence:mainfrom
verityw:main

Conversation

@verityw

@verityw verityw commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Right now, LiberoOutputs and DroidOutputs are hardcoded to think that the second axis is the action dims, when it comes to removing the padding. This is a problem when running batched inference, as the output is then [batch size, chunk len, padded action dims]. Simple fix: instead of hardcoded to be second axis, set it to be the last.

[:, :<max action dim>] --> [..., :<max action dim>]

This is functionally identical to the past version for all unbatched use cases.

@kvablack kvablack enabled auto-merge (squash) June 15, 2026 23:59
@kvablack kvablack merged commit 15a9616 into Physical-Intelligence:main Jun 16, 2026
2 checks passed
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.

2 participants