fix(nodes): add super init to PickleStorageTorch

This commit is contained in:
psychedelicious 2024-02-07 18:35:58 +11:00
parent 5dd158a2d4
commit de63e888d6

View File

@ -15,6 +15,7 @@ class PickleStorageTorch(PickleStorageBase[T]):
"""Responsible for storing and retrieving non-serializable data using `torch.save` and `torch.load`."""
def __init__(self, output_folder: Path, item_type_name: "str"):
super().__init__()
self._output_folder = output_folder
self._output_folder.mkdir(parents=True, exist_ok=True)
self._item_type_name = item_type_name