Skip to content
Snippets Groups Projects
Commit 7077e40a authored by auphelia's avatar auphelia
Browse files

[Driver] Update loading of rt weights in driver base

parent e3814333
No related branches found
No related tags found
No related merge requests found
...@@ -189,14 +189,10 @@ class FINNExampleOverlay(Overlay): ...@@ -189,14 +189,10 @@ class FINNExampleOverlay(Overlay):
layer_ind = int(w_filename.split("_")[1]) layer_ind = int(w_filename.split("_")[1])
rt_weight_dict[(sdp_ind, layer_ind)] = layer_w rt_weight_dict[(sdp_ind, layer_ind)] = layer_w
for sdp_ind, layer_ind in rt_weight_dict.keys(): for sdp_ind, layer_ind in rt_weight_dict.keys():
cand_if_name = "StreamingDataflowPartition_%d/s_axilite_%d" % ( cand_if_name = "StreamingDataflowPartition_%d" % sdp_ind
sdp_ind,
layer_ind,
)
if cand_if_name in self.ip_dict.keys(): if cand_if_name in self.ip_dict.keys():
layer_mmio = getattr( layer_mmio = getattr(
getattr(self, "StreamingDataflowPartition_%d" % sdp_ind), self, "StreamingDataflowPartition_%d" % sdp_ind
"s_axilite_%d" % layer_ind,
).mmio ).mmio
layer_w = rt_weight_dict[(sdp_ind, layer_ind)] layer_w = rt_weight_dict[(sdp_ind, layer_ind)]
layer_mmio.write_mm(0, layer_w.tobytes()) layer_mmio.write_mm(0, layer_w.tobytes())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment