Here is a small example to reproduce the problem:
Problem 1: Although I called build() function, summary() does not show the output shape.
build()
summary()