I have a model with an explicitly defined input layer (e.g., model.add(layers.Input(shape=))). I am getting the following error:
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
Cell In[66], line 1
----> 1 visualizer(model, file_name='C:/graph.png', file_format='png', view=True, settings=None)
File ~\anaconda3\envs\psychopy_tf\lib\site-packages\keras_visualizer\__init__.py:61, in visualizer(model, file_name, file_format, view, settings)
59 for num, layer in enumerate(model.layers, 1):
60 if num == 1:
---> 61 input_layer = layer.input_shape[1]
62 if num == len(model.layers):
63 output_layer = layer.output_shape[1]
IndexError: list index out of range
For some reason, the input shape for the Input layer is a list with a tuple in it, rather than a tuple like the following layers
I have a model with an explicitly defined input layer (e.g., model.add(layers.Input(shape=))). I am getting the following error:
For some reason, the input shape for the Input layer is a list with a tuple in it, rather than a tuple like the following layers