lava icon indicating copy to clipboard operation
lava copied to clipboard

Refactor lava messaging and implement remaining PyPorts

Open mgkwill opened this issue 4 years ago • 0 comments

Implement:

  • PyInPortVectorSparse
  • PyInPortScalarDense
  • PyInPortScalarSparse
  • PyOutPortVectorSparse
  • PyOutPortScalarDense
  • PyOutPortScalarSparse

Retrofit to work with other input types/shapes:

  • PyInPortVectorDense

https://github.com/lava-nc/lava/blob/9d80ea15af495b87df7f4b63e83531bdaf7d41f9/lava/magma/core/model/py/ports.py#L53-L75

Ensure that ports process data correctly when receiving from the matrix:

Vector Vector Scalar Scalar
----------- -Receive- Dense -Receive- Sparse -Receive- Dense -Receive- Sparse
Vec -Send- Dense ------- ------- ------- -------
Vec -Send- Sparse ------- ------- ------- -------
Sca -Send- Dense ------- ------- ------- -------
Sca -Send- Sparse ------- ------- ------- -------

mgkwill avatar Oct 28 '21 21:10 mgkwill