tensorflow / tensor2tensor

Library of deep learning models and datasets designed to make deep learning more accessible and accelerate ML research.
Apache License 2.0
15.14k stars 3.45k forks source link

DEADLINE EXCEEDED error [query.py] #599

Open ndvbd opened 6 years ago

ndvbd commented 6 years ago

There are some models that take long time compute, and then query.py throws DEADLINE_EXCEEDED error.

I solved this by changing

flags.DEFINE_integer("timeout_secs", 10, "Timeout for query.")

to 60 seconds.

I recommend throwing a better exception, with some explanation: "Try to increase timeout_secs in order to solve this problem"

rsepassi commented 6 years ago

Would welcome a PR