[MSDN Redirect] tf-sentencepiece Error

ajkuma 21,321 Reputation points Microsoft Employee
2020-01-31T16:27:13.11+00:00

Hello!

I'm trying to deploy a machine learning model as a flask api on azure(LINUX VM) using azure deploy as a web app service. I've been getting tf framework error due to tf-sentencepiece lib that I'm importing in my model.
Tensorflow==1.14
tf-sentencepiece==0.1.85

P.s- The model runs fine on mac OS.

Below is the error I've been getting.

module style="box-sizing:border-box;">tensorflow.python.framework.errors_impl.NotFoundError:
/antenv/lib/python3.7/site-packages/tf_sentencepiece/_sentencepiece_processor_ops.so.1.14.0: undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs
Any support or guidance will be much appreciated.

regards,

Shubham

[Source] : https://social.msdn.microsoft.com/Forums/en-US/a534eddc-e14f-4e84-844e-cc6f236f998d/tfsentencepiece-error?forum=windowsazuredevelopment

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,629 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shubham Chandel 76 Reputation points
    2020-02-03T10:49:09.023+00:00

    Hello!

    I've found the solution for this issue, you just need to downgrade your python version to 3.6 in your app config.

    python==3.6.9
    tensorflow==1.14.0
    tf-sentencepiece==0.1.85


0 additional answers

Sort by: Most helpful