initializers

[Incomplete module] The initializers submodule includes methods for initializing parameters (such as phase shifter values) throughout a NetworkLayer.

class neuroptica.initializers.Initializer[source]

Bases: object

Base initializer class

__weakref__

list of weak references to the object (if defined)

initialize_mesh(layer: neuroptica.layers.NetworkLayer)[source]

Initialize the phase shifter values for an optical mesh :param layer: the NetworkLayer to initialize

class neuroptica.initializers.RandomPhaseInitializer[source]

Bases: neuroptica.initializers.Initializer

initialize_mesh(layer: neuroptica.layers.NetworkLayer)[source]

Initialize the phase shifter values for an optical mesh :param layer: the NetworkLayer to initialize