This commit is contained in:
2024-09-13 16:58:34 +08:00
commit b06a9ecee0
103 changed files with 5440 additions and 0 deletions

21
PytorchBoot/component.py Normal file
View File

@@ -0,0 +1,21 @@
from PytorchBoot.utils.log_util import Log
class Component:
TYPE: str
NAME: str
def get_name(self):
return self.NAME
def get_type(self):
return self.TYPE
def get_config(self):
return self.config
def print(self):
Log.blue("Component Information")
Log.blue(f"- Type: {self.TYPE}")
Log.blue(f"- Name: {self.NAME}")
Log.blue(f"- Config: \n\t{self.config}")