Skip to content

Commit

Permalink
type check
Browse files Browse the repository at this point in the history
  • Loading branch information
roman807 committed Feb 29, 2024
1 parent a572aee commit 208aa82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/eva/callbacks/writers/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def __init__(
self._group_key = group_key
self._overwrite = overwrite

self._write_queue: multiprocessing.Queue | None
self._write_process: eva_multiprocessing.Process | None
self._write_queue: multiprocessing.Queue
self._write_process: eva_multiprocessing.Process

@override
def on_predict_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule) -> None:
Expand Down Expand Up @@ -98,8 +98,8 @@ def on_predict_end(self, trainer: pl.Trainer, pl_module: pl.LightningModule) ->
self._write_queue.put(None)
self._write_process.join()
logger.info(f"Predictions and manifest saved to {self._output_dir}")
self._write_process = None
self._write_queue = None
self._write_process = None # type: ignore
self._write_queue = None # type: ignore

def _initialize_write_process(self) -> None:
self._write_queue = multiprocessing.Queue()
Expand Down

0 comments on commit 208aa82

Please sign in to comment.