Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

crashes with functional model #14

Open
btekgit opened this issue Aug 5, 2018 · 1 comment
Open

crashes with functional model #14

btekgit opened this issue Aug 5, 2018 · 1 comment

Comments

@btekgit
Copy link

btekgit commented Aug 5, 2018

When functional model is used, the api does not recognize input layer.
ere is code
`import keras;
from keras.layers import Input, Dense
from keras.models import Model

#This returns a tensor
inputs = Input(shape=(784,))
#a layer instance is callable on a tensor, and returns a tensor
l1 = Dense(units=800,kernel_initializer=keras.initializers.Ones(), activation='relu')(inputs)
l2 = Dense(units=800,kernel_initializer=keras.initializers.Ones(), activation='relu')(l1)
lo = Dense(10, activation='softmax')(l2)

#This creates a model that includes
#the Input layer and three Dense layers
model = Model(inputs=inputs, outputs=lo)
model.compile(optimizer='rmsprop',
loss='categorical_crossentropy',
metrics=['accuracy'])

from ann_visualizer.visualize import ann_viz;

ann_viz(model, title="");`

@RedaOps
Copy link
Owner

RedaOps commented Aug 23, 2018

Can you post the error message you are getting?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants