-
Notifications
You must be signed in to change notification settings - Fork 282
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
Can't build model on Rstudio #613
Comments
Hi, please post a minimal reproducible example. |
I follow this example https://tensorflow.rstudio.com/keras/ . When I run following code the error was shown. model <- keras_model_sequential() |
Please post the complete code you're executing, and point out at which point the error occurs. |
install.packages("keras") library(keras) x_train <- array_reshape(x_train, c(nrow(x_train), 784)) x_train <- x_train / 255 y_train <- to_categorical(y_train, 10) model <- keras_model_sequential() All script is as above. when it run to the last part "model" then error was shown. |
Hi, that code alone can't be throwing the above error. Try restarting R and then, just start with The reason I'm saying this is that the error says something about "Layer vgg16 ".
which does not appear in the above code. |
I am also getting an error similar to this when I run: library(keras) model <- keras_model_sequential() model %>% I obtain the error: |
I have also tried to run the same example as edwardfung2018, and received the exact error he did. |
Obtaining the following error after running:
Error:
My example comes from the book "Deep Learning with R" - Page 176; Part " Listing 6.7 Using an embedding layer and classifier on the IMDB data " |
What appeared to work for me is to reinstall keras. I think the reticulate package is an older version which might be causing problems. Running the following solved the issue for me
|
I've got the exact same error now and none of the solutions seem to be working for me |
Hi, this thread is quite old, and likely stale. Can you please open a new issue? |
Error in py_call_impl(callable, dots$args, dots$keywords) :
ValueError: Layer vgg16 was called with an input that isn't a symbolic tensor. Received type: <class 'keras.engine.sequential.Sequential'>. Full input: [<keras.engine.sequential.Sequential object at 0x000000002DFAB9E8>]. All inputs to the layer should be tensors.
The text was updated successfully, but these errors were encountered: