lvjianjin / bert-tfserving Goto Github PK
View Code? Open in Web Editor NEW一个完整bert训练到部署的案例
一个完整bert训练到部署的案例
您好 请问在使用 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)
你好,没看到有关于并发请求和batch处理的步骤
请问您是将ckpt转成PB,使用pb进行预测的吗。或者您有什么好的方式转化为pb吗?我现在只知道需要知道输出节点,如何确定哪个节点呢。但是输出节点输入后,会出现 pred:0 这样的错误。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.