[Bugfix] Update get_processor_data to use get_all method (#30583)
Signed-off-by: Drew Botwinick <6953152+dbotwinick@users.noreply.github.com>
This commit is contained in:
@@ -120,7 +120,7 @@ class ProcessorBatchItems(ModalityDataItems[Sequence[_T], _T]):
|
|||||||
return self.data[index]
|
return self.data[index]
|
||||||
|
|
||||||
def get_processor_data(self) -> Mapping[str, object]:
|
def get_processor_data(self) -> Mapping[str, object]:
|
||||||
return {f"{self.modality}s": self.data}
|
return {f"{self.modality}s": self.get_all()}
|
||||||
|
|
||||||
def get_passthrough_data(self) -> Mapping[str, object]:
|
def get_passthrough_data(self) -> Mapping[str, object]:
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user