Skip to content

Commit

Permalink
Unfix multi outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Farrugia committed Jun 27, 2024
1 parent ece4517 commit bc96033
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/n2d2/deepnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,16 @@ def get_output_cells(self):
Return the last N2D2 cells in the deepNet
"""
output = []
"""
// Made to support several outputs but breaks regular networks exports
for cell in self.N2D2().getCells():
if len(self._cells[cell].N2D2().getChildrenCells()) == 0:
output.append(self._cells[cell])
return output
"""
for cell in self.N2D2().getLayers()[-1]:
output.append(self._cells[cell])
return output

def draw(self, filename):
N2D2.DrawNet.draw(self._N2D2_object, filename)
Expand Down

0 comments on commit bc96033

Please sign in to comment.