1. 提交代码,初始化项目;
This commit is contained in:
23
algos/base.py
Normal file
23
algos/base.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class BaseRunner(ABC):
|
||||
|
||||
@abstractmethod
|
||||
def build_model(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def run_test(self):
|
||||
pass
|
||||
|
||||
|
||||
class BaseAlgoModel(ABC):
|
||||
|
||||
@abstractmethod
|
||||
def forward(self, *args, **kwargs):
|
||||
pass
|
||||
Reference in New Issue
Block a user