added shape to entity
This commit is contained in:
@@ -6,6 +6,7 @@ from status import Status
|
|||||||
|
|
||||||
class Entity:
|
class Entity:
|
||||||
def __init__(self, shape: tuple[int, int], params: RbmParams):
|
def __init__(self, shape: tuple[int, int], params: RbmParams):
|
||||||
|
self.shape = shape
|
||||||
self.state = RbmState.from_layer_params(shape)
|
self.state = RbmState.from_layer_params(shape)
|
||||||
self.params = params
|
self.params = params
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user