Skip to content

Upgrade examples to TensorFlow 2 in develop and 2.x docker images #1606

Open
@tobegit3hub

Description

@tobegit3hub

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions