Skip to content

Fix normalize tests and add multi-batch dimension test#623

Merged
kvablack merged 1 commit intomainfrom
fix-normalize-tests
Aug 28, 2025
Merged

Fix normalize tests and add multi-batch dimension test#623
kvablack merged 1 commit intomainfrom
fix-normalize-tests

Conversation

@kvablack
Copy link
Contributor

Summary

  • Fix test_normalize_update to properly handle vector batching in RunningStats
  • Fix test_serialize_deserialize to use multiple vectors (required by get_statistics)
  • Add test_multiple_batch_dimensions to verify handling of complex batch shapes like (2, 3, 4)

Test plan

  • All tests pass: python -m pytest src/openpi/shared/normalize_test.py -v
  • Verified the new test covers multiple batch dimensions correctly

🤖 Generated with Claude Code

- Fix test_normalize_update to properly handle vector batching
- Fix test_serialize_deserialize to use multiple vectors
- Add test_multiple_batch_dimensions to verify handling of complex batch shapes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@kvablack kvablack force-pushed the fix-normalize-tests branch from 65e60b5 to 6eb4446 Compare August 28, 2025 18:33
@kvablack kvablack merged commit 144696f into main Aug 28, 2025
2 checks passed
@kvablack kvablack deleted the fix-normalize-tests branch August 28, 2025 20:36
ChenZhenY pushed a commit to ChenZhenY/openpi that referenced this pull request Sep 23, 2025
…lligence#623)

## Summary
- Fix test_normalize_update to properly handle vector batching in
RunningStats
- Fix test_serialize_deserialize to use multiple vectors (required by
get_statistics)
- Add test_multiple_batch_dimensions to verify handling of complex batch
shapes like (2, 3, 4)

## Test plan
- [x] All tests pass: `python -m pytest
src/openpi/shared/normalize_test.py -v`
- [x] Verified the new test covers multiple batch dimensions correctly

🤖 Generated with [Claude Code](https://claude.ai/code)
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.

1 participant