MisconfiguredLayerError#

exception penzai.deprecated.v1.core.layer.MisconfiguredLayerError[source]#

Raised when a layer’s attributes are misconfigured.

Subclasses of Layer can raise MisconfiguredLayerError in their input_structure or output_structure methods to indicate that their attributes have been set incorrectly and the layer cannot be successfully called with any input structure. They can also raise MisconfiguredLayerError in their __call__ method (although this will be raised automatically if they use checked_layer_call.)

__init__(*args, **kwargs)#
__new__(**kwargs)#