Add an input layer to your model, defining the shape of your dataset.Using this command tf.keras.layers.Input(shape=(,) ), this modification has enabled your model to get it's summary and weights .Please refer to this gist
input layer
shape
tf.keras.layers.Input(shape=(,) )