OneToOne# class brainpy.dnn.OneToOne(num, weight, sharding=None, mode=None, name=None)[source]# Synaptic matrix multiplication with One2One connection. Parameters: num (int) – int. The number of neurons. weight (Union[float, TypeVar(ArrayType, Array, Variable, TrainVar, Array, ndarray), Callable]) – The synaptic weight. sharding (Union[Sequence[str], Device, Sharding, None]) – The sharding strategy. mode (Optional[Mode]) – The computing mode. name (Optional[str]) – The object name. update(pre_val)[source]# The function to specify the updating rule.