following is my architecture:

model = Sequential()
model.add(Conv1D(filters=8, kernel_size=2, activation="relu", input_shape=(9, 1)))

# CNN Pooling

# Flatten layer

# Fully connected Layer
model.add(Dense(16, activation="relu"))

# Decision Layer
model.add(Dense(1, activation="sigmoid"))

this is what i got from the code: enter image description here

but i want architecture like this: enter image description here

i dont know how many layers should i add can any one help me with this thanks.


1 Answer 1


You will probably have to use a graphical tool and create the diagram from scratch. I am not aware of a tool that can directly generate it from code. Bur your CNN is rather simple so it should be easily doable.

For instance :




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.