- training params are (again) attrubute of Entity
- ditched layout concept
This commit is contained in:
+2
-4
@@ -1,12 +1,10 @@
|
||||
from .state import RbmState
|
||||
from .train import TrainingParams
|
||||
from .entity import Entity, EntityParams
|
||||
from .entity import Entity, EntityParams, TrainingParams
|
||||
|
||||
class Layer:
|
||||
def __init__(self, name: str, shape: tuple[int, int, int, int], entity_params: EntityParams, training_params: TrainingParams):
|
||||
self.name = name
|
||||
self.shape = shape
|
||||
self.entity = Entity((shape[0]*shape[1]+shape[2], shape[3]), entity_params)
|
||||
self.entity = Entity((shape[0]*shape[1]+shape[2], shape[3]), entity_params, training_params)
|
||||
self.training_params = training_params
|
||||
|
||||
def init(self, std: float):
|
||||
|
||||
Reference in New Issue
Block a user