SpacingDummyLayer#

class scikitplot.visualkeras.SpacingDummyLayer(*args, spacing=50, **kwargs)[source]#

A factory class for dynamically generating a dummy Keras layer with custom spacing.

This is useful in model visualization pipelines where visual gaps or structural separation between layers need to be represented without introducing real computation.

TensorFlow is only imported when the class is instantiated to avoid unnecessary dependencies.

This class dynamically inherits from TensorFlow’s tf.keras.layers.Layer class, ensuring that TensorFlow is only imported when this class is instantiated.

Parameters:

spacing (int)