Week 1, Assignment 3: Error in music_inference_model

Hi,
I am facing below error:

AttributeError Traceback (most recent call last)
in
1 # UNIT TEST
----> 2 inference_summary = summary(inference_model)
3 comparator(inference_summary, music_inference_model_out)

~/work/W1A3/test_utils.py in summary(model)
36 result =
37 for layer in model.layers:
—> 38 descriptors = [layer.class.name, layer.output_shape, layer.count_params()]
39 if (type(layer) == Conv2D):
40 descriptors.append(layer.padding)

/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py in output_shape(self)
2190 'ill-defined for the layer. ’
2191 'Use get_output_shape_at(node_index)
→ 2192 ‘instead.’ % self.name)
2193
2194 @property

AttributeError: The layer “lstm_3” has multiple inbound nodes, with different output shapes. Hence the notion of “output shape” is ill-defined for the layer. Use get_output_shape_at(node_index) instead.

Kindly help to resolve this issue

Issue is resolved after restarting the Kernel.

Thanks