[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-09-03 14:18:02 +00:00
parent 0e04f5fbbe
commit 7868df27dc
+2 -2
View File
@@ -317,7 +317,7 @@ class LeRobotDatasetMetadata:
# Therefore, only this file needs to be converted to PyArrow; the rest is loaded from the PyArrow memory-mapped cache. # Therefore, only this file needs to be converted to PyArrow; the rest is loaded from the PyArrow memory-mapped cache.
# Explicitly delete old dataset to free memory before reloading # Explicitly delete old dataset to free memory before reloading
if hasattr(self, 'episodes') and self.episodes is not None: if hasattr(self, "episodes") and self.episodes is not None:
del self.episodes del self.episodes
self.episodes = None self.episodes = None
gc.collect() gc.collect()
@@ -1061,7 +1061,7 @@ class LeRobotDataset(torch.utils.data.Dataset):
# Therefore, only this file needs to be converted to PyArrow; the rest is loaded from the PyArrow memory-mapped cache. # Therefore, only this file needs to be converted to PyArrow; the rest is loaded from the PyArrow memory-mapped cache.
# Explicitly delete old dataset to free memory before reloading # Explicitly delete old dataset to free memory before reloading
if hasattr(self, 'hf_dataset') and self.hf_dataset is not None: if hasattr(self, "hf_dataset") and self.hf_dataset is not None:
del self.hf_dataset del self.hf_dataset
self.hf_dataset = None self.hf_dataset = None
gc.collect() gc.collect()