tfdeploy icon indicating copy to clipboard operation
tfdeploy copied to clipboard

Error while trying to reproduce "Getting Started" example.

Open jcrodriguez1989 opened this issue 6 years ago • 2 comments

I am not being able to reproduce the example given in TensorFlow Model Deployment from R End-to-End section.

I am willing to export and then serve a keras model, however, when I have my model ready (after predicting) I get:

library(tfdeploy)
export_savedmodel(model, "savedmodel")
## Error in export_savedmodel.keras.engine.training.Model(model, "savedmodel") : 
##   'export_savedmodel()' is currently unsupported under the TensorFlow Keras implementation, consider using 'tfestimators::keras_model_to_estimator()'.

So I tried using tfestimators::keras_model_to_estimator, however, I am still having issues:

tfe_model <- tfestimators::keras_model_to_estimator(model)
export_savedmodel(tfe_model, "savedmodel")
## Error in export_savedmodel.tf_estimator(tfe_model, "savedmodel") : 
##   Currently only classifier and regressor are supported. Please specify a custom serving_input_receiver_fn.

Is there anything I am missing? My sessionInfo()

thanks! Juan Cruz

jcrodriguez1989 avatar Apr 25 '19 15:04 jcrodriguez1989

I am also getting the same issue

RajatChaudhary1992 avatar May 09 '19 07:05 RajatChaudhary1992

I have same issue , using Rstudio on Google Cloud Platform

ashishsr123 avatar May 18 '19 15:05 ashishsr123