Make TF-Hub module conversion TF 2.0 compatible
To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.
TensorFlow.js version
1.0.1
Browser version
Describe the problem or feature request
We are using tf.compat.v1 API for TF-Hub module conversion, we should migrate to TFHub latest API that eliminates the need for tf.compat.v1 api calls.
TensorFlow Hub's new format is now indeed the SavedModel 2.0 built into core TF2. Some modules can be already loaded by tf.saved_model.load (example: https://tfhub.dev/google/tf2-preview/mobilenet_v2/classification/2). Far from all of the modules are converted however. We are hoping to have a more general solution soon: a loader that would load Hub 1.0 modules into TF2.
I will update the bug when that happens (you can assign this to me).
@pyu10055 You accidentally unassigned yourself and reassigned yourself instead of assigning @vbardiovskyg as requested.