question

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT asked ·

[MSDN Redirect] tf-sentencepiece Error

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-webappsazure-webapps-content-deployment
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShubhamChandel-8065 avatar image
0 Votes"
ShubhamChandel-8065 answered ·

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

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ShubhamChandel-8065, Thanks for the follow-up! Glad to know that you got it working. Thanks for sharing the solution that worked for you with the community, it would benefit other users with a similar issue.

1 Vote 1 · ·