MisconfiguredLayerError#
- exception penzai.deprecated.v1.core.layer.MisconfiguredLayerError[source]#
Raised when a layer’s attributes are misconfigured.
Subclasses of Layer can raise
MisconfiguredLayerError
in theirinput_structure
oroutput_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 raiseMisconfiguredLayerError
in their__call__
method (although this will be raised automatically if they usechecked_layer_call
.)- __init__(*args, **kwargs)#
- __new__(**kwargs)#