lib.memory: expand Memory.Init.__repr__().
Display `shape` and `depth` also. `depth` is redundant although useful for ease of reading (there are always `depth` elements shown), but `shape` was just lost.
This commit is contained in:
parent
fc84b8decf
commit
2333c5f0af
2 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ class Memory(wiring.Component):
|
|||
return self._depth
|
||||
|
||||
def __repr__(self):
|
||||
return f"Memory.Init({self._elems!r})"
|
||||
return f"Memory.Init({self._elems!r}, shape={self._shape!r}, depth={self._depth})"
|
||||
|
||||
|
||||
def __init__(self, *, shape, depth, init, attrs=None, src_loc_at=0):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue