21 lines
472 B
Python
Raw Normal View History

2024-08-18 00:37:17 +08:00
from torch import nn
from configs.config import ConfigManager
class Pipeline(nn.Module):
TRAIN_MODE: str = "train"
TEST_MODE: str = "test"
def __init__(self, pipeline_config):
super(Pipeline, self).__init__()
self.modules_config = ConfigManager.get("modules")
self.device = ConfigManager.get("settings", "general", "device")
def forward(self, data, mode):
pass
if __name__ == '__main__':
pass