Closed sebastianbk closed 6 years ago
@sebastianbk It is returning a generator and I confirmed by running the code it works. Can you confirm you don't have a file named model.py which doesn't have the function?
@sebastianbk closing this issue due to inactivity. Feel free to reopen or file new issue.
When using the
preprocess.py
tool to prepare a chunk of data for testing out the Cloud ML Engine prediction service (using the model trained with Keras and saved to a SavedModel file), an exception is thrown on line 25:https://github.com/GoogleCloudPlatform/cloudml-samples/blob/8a349c10bc19c1fe42bd6bd83606cec3a23b8f76/census/keras/preprocess.py#L25
The tool uses the
generator_input
function in themodel.py
file, which returns agenerator
object. However, this object does not have anext()
method, which is thepreprocess.py
tool assumes. Hence, the following exception is thrown:I have been trying to investigate whether an update was made to the
model.py
file breaking the functionality of thepreprocess
file. I am not sure but I believe this commit could be the reason: https://github.com/GoogleCloudPlatform/cloudml-samples/commit/494721f7ad7dc44d6e8da3ac287b5dc5c39fab59I would try to fix this issue myself and submit a pull request but I am haven't been successful in finding a solution. Could you point me in the direction of the cause of the problem? Then I will attempt to resolve it.