How to add bias in linear and convolutional layers? #175
-
Hi, it seems that the linear and convolutional layer in sLayer module disable the bias term. If I have an SNN network with bias term, how can I run the network under LAVA? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @CloudyDory, bias is a property of neurons in neuromorphic processors. That is why they are disabled on the synapses. It is not fully exposed to the users for neurons as well. They are triggered only when one uses normalization on neurons. It seems that you want to run inference on your existing network, not train it. Is that correct? In that case, you can initialize the bias of the neuron process in lava. If you are using NetX specification, you can also add
|
Beta Was this translation helpful? Give feedback.
Hi @CloudyDory, bias is a property of neurons in neuromorphic processors. That is why they are disabled on the synapses. It is not fully exposed to the users for neurons as well. They are triggered only when one uses normalization on neurons.
It seems that you want to run inference on your existing network, not train it. Is that correct? In that case, you can initialize the bias of the neuron process in lava. If you are using NetX specification, you can also add
'bias'
property of a layer.