Spaces:
Running
Running
File size: 243 Bytes
426ffb5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import torch.nn as nn
from abc import *
class BaseModel(nn.Module, metaclass=ABCMeta):
def __init__(self, args):
super().__init__()
self.args = args
@classmethod
@abstractmethod
def code(cls):
pass
|