from keras.layers import Input # Define the input shape input_shape = (28, 28, 1) # Create the Input layer inputs = Input(shape=input_shape)
from keras.layers import Input # Define the input shape input_shape = (28, 28, 1) # Create the Input layer inputs = Input(shape=input_shape) # Get the shape of the input tensor print(inputs.get_shape())
(?, 28, 28, 1)In this example, we used the Keras package library to create the Input layer and get the shape of the input tensor.