浏览代码

Forgot an abstractmethod

Nel Nibcord 6 月之前
父节点
当前提交
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:
   async def encode(self, shard: Shard, prompt: str) -> np.ndarray:
     pass
     pass
   
   
+  @abstractmethod
   async def sample(self, x: np.ndarray) -> np.ndarray:
   async def sample(self, x: np.ndarray) -> np.ndarray:
     pass
     pass