Open
Description
Now we follow the official documents to build and test tensorflow serving with latest dev docker image. The examples can not be run successfully because the tensorflow version is 2.1.0 in tensorflow/serving:latest-devel
while the examples code like mnist_saved_model.py
still uses TensorFlow 1.x APIs.
We should upgrade the examples to TensorFlow 2 so that users can build and test with latest docker images.
BTW, simply using tf_upgrade_v2 ./mnist_saved_model.py
will not work because of some deprecated APIs like tf.contrib.lookup.index_to_string_table_from_tensor
.