Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingInputError under theano, but runs fine under tensorflow #5061

Closed
billshoo opened this issue Jan 17, 2017 · 0 comments
Closed

MissingInputError under theano, but runs fine under tensorflow #5061

billshoo opened this issue Jan 17, 2017 · 0 comments

Comments

@billshoo
Copy link

billshoo commented Jan 17, 2017

The following Keras model runs smoothly under tensorflow, but gives "theano.gof.fg.MissingInputError" on the last line under theano (X and y can be any dummy data)

    X = np.random.rand(100000, 320)
    y = np.random.rand(100000, 1)
    model = Sequential()
    model.add(TimeDistributed(Dropout(0.5), batch_input_shape=(1, 100000, 320)))
    model.add(TimeDistributed(Dense(1000)))
    model.add(TimeDistributed((Dropout(0.5))))
    model.add(LSTM(1000, batch_input_shape=(1, 100000, 1000), 
                   return_sequences=True, stateful=True))
    model.add(TimeDistributed((Dropout(0.5))))
    model.add(TimeDistributed(Dense(1)))
    opti = RMSprop(lr=0.001)
    model.compile(optimizer=opti, loss='mse')
    model.train_on_batch(X[np.newaxis, 0:100000, :], y[np.newaxis, 0:100000])
@stale stale bot added the stale label May 23, 2017
@stale stale bot closed this as completed Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant