create layer package and abstract class
This commit is contained in:
parent
92f9eae9e6
commit
54944244ae
2
src/layers/__init__.py
Normal file
2
src/layers/__init__.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
from .layer import Layer
|
||||
from .transcoder import Transcoder
|
10
src/layers/layer.py
Normal file
10
src/layers/layer.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from dir import Root
|
||||
|
||||
class Layer(ABC):
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def __process(self, root: Root):
|
||||
raise NotImplementedError
|
Loading…
Reference in New Issue
Block a user