I've successfully deployed locally trained TF model to ML-engine however upon invoking test command for prediction:
gcloud ml-engine predict --model=$modelname --text-instances=test.txt
I got this error: { "error": "Prediction failed: Error processing input: Expected float32, got u'0.18189938740640676506643558241194 … 0.23270735134367070973127056277008' of type 'unicode' instead." }
The model expects an input of shape (28, 28, 1)
If someone could clarify what I'm doing wrong or could provide an example of correct format for input .txt or .json for this kind of data? Thanks in advance!