Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/mldebug/layer_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,15 @@ def _read_buffer_info(self, buffer_info_file):
self.layout = data[".meta"].get("layout")
self.device_batch_size = data[".meta"].get("device_batch_size", 1)

# Layout now represents Full overlay but design can choose
# to use only a part of it
stampcount = data[".meta"].get("max_stamps_used")
if stampcount:
self.layout[0] = stampcount
elif data.get("layers"):
self.layout[0] = max(lyr.get("no_of_stamps", 1) for _, lyr in data["layers"].items() )
# Else use old style

# Treat mBnS as 1BnS
if self.device_batch_size > 1:
if self.layout[0] > 1:
Expand All @@ -758,9 +767,6 @@ def _read_buffer_info(self, buffer_info_file):
self.layout[0] = self.device_batch_size
LOGGER.log("Batched design detected")

for _, e in data.items():
if "no_of_stamps" in e:
self.layout[0] = max(self.layout[0], e.get("no_of_stamps"))
self.x2 = data[".meta"].get("flow") == "x2"
return data

Expand Down
Loading