mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-19 18:49:52 +00:00
feat(batch_processor): Add feature_contract method to ToBatchProcessor
- Introduced feature_contract method that returns features without modification, maintaining the no-op behavior of the processor. - This addition enhances the flexibility of the ToBatchProcessor for future feature processing needs.
This commit is contained in:
committed by
Steven Palma
parent
e9cb779eab
commit
3e7c9d7afc
@@ -121,3 +121,7 @@ class ToBatchProcessor:
|
||||
def reset(self) -> None:
|
||||
"""Reset processor state (no-op for this processor)."""
|
||||
pass
|
||||
|
||||
def feature_contract(self, features: dict[str, Any]) -> dict[str, Any]:
|
||||
"""Return features (no-op for this processor)."""
|
||||
return features
|
||||
|
||||
Reference in New Issue
Block a user