Skip to content

Commit

Permalink
Process property of virtual ports no longer returns None
Browse files Browse the repository at this point in the history
Signed-off-by: Mathis Richter <[email protected]>
  • Loading branch information
mathisrichter committed Feb 4, 2022
1 parent 58d5a14 commit 3891c8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lava/magma/core/process/ports/ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def process(self):

# ToDo: (AW) ReshapePort.connect(..) could be consolidated with
# ConcatPort.connect(..)
class ReshapePort(AbstractPort, AbstractVirtualPort):
class ReshapePort(AbstractVirtualPort, AbstractPort):
"""A ReshapePort is a virtual port that allows to change the shape of a
port before connecting to another port.
It is used by the compiler to map the indices of the underlying
Expand Down Expand Up @@ -641,7 +641,7 @@ def connect(self, ports: ty.Union["AbstractPort", ty.List["AbstractPort"]]):
self._connect_forward(to_list(ports), port_type)


class ConcatPort(AbstractPort, AbstractVirtualPort):
class ConcatPort(AbstractVirtualPort, AbstractPort):
"""A ConcatPort is a virtual port that allows to concatenate multiple
ports along given axis into a new port before connecting to another port.
The shape of all concatenated ports outside of the concatenation
Expand Down Expand Up @@ -711,7 +711,7 @@ def connect(self, ports: ty.Union["AbstractPort", ty.List["AbstractPort"]]):


# ToDo: TBD...
class PermutePort(AbstractPort, AbstractVirtualPort):
class PermutePort(AbstractVirtualPort, AbstractPort):
"""A PermutePort is a virtual port that allows to permute the dimensions
of a port before connecting to another port.
It is used by the compiler to map the indices of the underlying
Expand Down Expand Up @@ -758,7 +758,7 @@ def connect(self, ports: ty.Union["AbstractPort", ty.List["AbstractPort"]]):


# ToDo: TBD...
class ReIndexPort(AbstractPort, AbstractVirtualPort):
class ReIndexPort(AbstractVirtualPort, AbstractPort):
"""A ReIndexPort is a virtual port that allows to re-index the elements
of a port before connecting to another port.
It is used by the compiler to map the indices of the underlying
Expand Down

0 comments on commit 3891c8c

Please sign in to comment.