Преглед на файлове

Forgot an abstractmethod

Nel Nibcord преди 10 месеца
родител
ревизия
34019e4608
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      exo/inference/inference_engine.py

+ 1 - 0
exo/inference/inference_engine.py

@@ -12,6 +12,7 @@ class InferenceEngine(ABC):
   async def encode(self, shard: Shard, prompt: str) -> np.ndarray:
     pass
   
+  @abstractmethod
   async def sample(self, x: np.ndarray) -> np.ndarray:
     pass