Тип операции не зарегистрирован 'SentencepieceEncodeSparse' в двоичном - PullRequest
0 голосов
/ 03 июля 2019

Я развернул модель, которая использовала модель tfhub для обслуживания тензорного потока с помощью докера.

Вот модель tfhub, которая содержится в моей модели:

https://tfhub.dev/google/universal-sentence-encoder-multilingual/1

Вот команда для запуска докера

docker run -t --rm -p 8501:8501 \
    -v "/docker_dir/model_tf_serving:/models/mymodel" \
    -e MODEL_NAME=mymodel \
    tensorflow/serving &

Произошла ошибка:

Not found: Op type not registered 'SentencepieceEncodeSparse' in binary running on c5e507bf091b. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.

Так есть ли способ это исправить?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...