brainspy.processors.dnpu#

It is a very similar class to that of Processor, but it contains the con- trol voltages, declared as learnable parameters. Therefore, it only has the same input dimensions as the number of available data input electrodes. It is also a child of torch.nn.Module, and it allows for representing a layer of DNPUs in a time- multiplexing fashion (with the same Processor instance). It also enables applying linear transformations to the inputs before passing them to the processor.

Functions

merge_electrode_data(input_data, ...)

Merge data from two electrodes with the specified indices for each.

Classes

DNPU(processor, data_input_indices[, ...])

This class enables to declare the control voltages as learnable parameters in order to train a surrogate model to find optimal control voltage values for a particular problem.