InputSpecΒΆ

Specifies the rank, dtype and shape of every input to a layer.

Abstract Signature:

InputSpec(dtype: str, shape: tuple, ndim: int)

Keras

API: keras.layers.InputSpec
Strategy: Direct Mapping

TensorFlow

API: tf.keras.layers.InputSpec
Strategy: Direct Mapping