lava.proc.receiver
lava.proc.receiver.models
digraph inheritanceda46b86ec7 { bgcolor=transparent; rankdir=TB; size=""; "ABC" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Helper class that provides a standard way to create an ABC using"]; "AbstractProcessModel" [URL="../lava.magma.core.model.html#lava.magma.core.model.model.AbstractProcessModel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Represents a model that implements the behavior of a Process."]; "ABC" -> "AbstractProcessModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AbstractPyProcessModel" [URL="../lava.magma.core.model.py.html#lava.magma.core.model.py.model.AbstractPyProcessModel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Abstract interface for Python ProcessModels."]; "AbstractProcessModel" -> "AbstractPyProcessModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ABC" -> "AbstractPyProcessModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PyLoihiProcessModel" [URL="../lava.magma.core.model.py.html#lava.magma.core.model.py.model.PyLoihiProcessModel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="ProcessModel to simulate a Process on Loihi using CPU."]; "AbstractPyProcessModel" -> "PyLoihiProcessModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ReceiverModel" [URL="../lava/lava.proc.receiver.html#lava.proc.receiver.models.ReceiverModel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="CPU model for the Receiver process."]; "PyLoihiProcessModel" -> "ReceiverModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; }- class lava.proc.receiver.models.ReceiverModel(proc_params=None)
Bases:
PyLoihiProcessModel
CPU model for the Receiver process.
The process saves any accumulated input messages as a payload variable.
-
a_in:
PyInPort
= LavaPyType(cls=<class 'lava.magma.core.model.py.ports.PyInPortVectorDense'>, d_type=<class 'int'>, precision=None)
- implements_protocol
alias of
LoihiProtocol
-
payload:
ndarray
= LavaPyType(cls=<class 'numpy.ndarray'>, d_type=<class 'int'>, precision=32)
- required_resources: ty.List[ty.Type[AbstractResource]] = [<class 'lava.magma.core.resources.CPU'>]
- run_spk()
Execute spiking phase, integrate incomming input and update payload.
-
a_in:
lava.proc.receiver.process
digraph inheritance765119c4f5 { bgcolor=transparent; rankdir=TB; size=""; "AbstractProcess" [URL="../lava.magma.core.process.html#lava.magma.core.process.process.AbstractProcess",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="The notion of a Process is inspired by the Communicating Sequential"]; "Receiver" [URL="../lava/lava.proc.receiver.html#lava.proc.receiver.process.Receiver",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Process saving input messages as a payload variable."]; "AbstractProcess" -> "Receiver" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Receiver32Bit" [URL="../lava/lava.proc.receiver.html#lava.proc.receiver.process.Receiver32Bit",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Process saving input messages as a payload variable. For up to 32bit"]; "AbstractProcess" -> "Receiver32Bit" [arrowsize=0.5,style="setlinewidth(0.5)"]; }- class lava.proc.receiver.process.Receiver(*, shape=(1,), name=None, log_config=None)
Bases:
AbstractProcess
Process saving input messages as a payload variable.
- Parameters:
shape (tuple(int)) – Shape of the population of process units.
name (str) – Name of the Process. Default is ‘Process_ID’, where ID is an integer value that is determined automatically.
log_config (LogConfig) – Configuration options for logging.
- class lava.proc.receiver.process.Receiver32Bit(*, shape=(1,), name=None, log_config=None)
Bases:
AbstractProcess
Process saving input messages as a payload variable. For up to 32bit payload.
- Parameters:
shape (tuple(int)) – Shape of the population of process units.
name (str) – Name of the Process. Default is ‘Process_ID’, where ID is an integer value that is determined automatically.
log_config (LogConfig) – Configuration options for logging.