Coder Social home page Coder Social logo

bert-tfserving's People

Contributors

lvjianjin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bert-tfserving's Issues

save_model 报错

您好 请问在使用 save 时报如下错误
Traceback (most recent call last):
File "save_model.py", line 132, in
main(max_seq_len, model_dir, num_labels)
File "save_model.py", line 85, in main
input_ids=input_ids, input_mask=input_mask, segment_ids=None, labels=None, num_labels=num_labels)
File "save_model.py", line 63, in create_classification_model
logits = tf.reshape(logits, [-1, FLAGS.max_seq_length, 11])
File "/home/app_user_5i5j/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/flags.py", line 85, in getattr
return wrapped.getattr(name)
File "/home/app_user_5i5j/anaconda3/lib/python3.6/site-packages/absl/flags/_flagvalues.py", line 473, in getattr
raise AttributeError(name)
AttributeError: max_seq_length

这个max_seq_length 有什么属性要求??
里面的参数设置如下,请问应该如何解决
if name == 'main':
max_seq_len = 50
num_labels = 11
model_dir = './tmp/ner_model'
main(max_seq_len, model_dir, num_labels)

关于ckpt转成pb的问题

请问您是将ckpt转成PB,使用pb进行预测的吗。或者您有什么好的方式转化为pb吗?我现在只知道需要知道输出节点,如何确定哪个节点呢。但是输出节点输入后,会出现 pred:0 这样的错误。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.