Comments (7)
我安装了 tensorflow-gpu==1.10.0 版本 但是启动的时候 cpu还是爆满的 gpu没有什么明显变化 ,他也提示
INFO:tensorflow:***** Running training *****
INFO:tensorflow: Num examples = 567
INFO:tensorflow: Batch size = 32
INFO:tensorflow: Num steps = 177
INFO:tensorflow:Calling model_fn.
INFO:tensorflow:Running train on CPU
这里的Running on CPU,只是说没有在TPU上跑,GPU也是这么显示,看下代码就能看出来。可以看下gpu显存有没有在用,tensorflow 版本gpu用的比较少,看起来你的情况是正常的
from bert-classification-tutorial.
谢谢 ,最后 输出的test_result.tsv
0.1752398 0.11487983 0.17738575 0.003269045 0.0028900176 0.17111737 0.0030842775 0.17112687 0.17831196 0.0026950506
输出了一串向量 这个怎么用来分类的
from bert-classification-tutorial.
谢谢 ,最后 输出的test_result.tsv
0.1752398 0.11487983 0.17738575 0.003269045 0.0028900176 0.17111737 0.0030842775 0.17112687 0.17831196 0.0026950506
输出了一串向量 这个怎么用来分类的
argmax 就可以,可以参考tutorial: https://mp.weixin.qq.com/s/XmeDjHSFI0UsQmKeOgwnyA
from bert-classification-tutorial.
恩 一开始是从这篇文章找到 这里的 @ejld 那个 argmax 不是找出最大值的吗 具体怎么判断他是属于哪个类别呢 谢谢
现在输入一行 他也只返回一行结果
from bert-classification-tutorial.
@ejld 我知道了 他返回的是每个类别的可能性 O(∩_∩)O谢谢 所以你叫我用argmax ,恩 还有最后的问题 那个输出结果的排序 是怎么对应起来的
from bert-classification-tutorial.
@ejld 训练的时候gpu显存没有在用,应该是用的cpu训练的,速度特别慢,如果用gpu训练需要在代码里配置吗
from bert-classification-tutorial.
@liulj0507 你如果安装的版本是gpu的 就会使用gpu 如果没有就是tensorflow安装有问题
from bert-classification-tutorial.
Related Issues (20)
- 关于预处理的问题 HOT 3
- 关于预测准确率 HOT 29
- issues about new data which 7 classification HOT 8
- 保存训练过程dev set准确率
- do_eval的问题 HOT 1
- 中文乱码 HOT 1
- 请问, 哪里可以看到损失函数?
- max_seq_length的最大值不超过512
- 验证的精度,只有0.1,为什么? HOT 4
- 用模型预测最终生成的文件问题 HOT 4
- mrpc的训练数据在哪里下载
- emmm 这里的classification 好像不止改了一点点
- 能导出环境配置文件?跑了你的项目报错了
- eval_drop_remainder = True if FLAGS.use_tpu else Falsed HOT 2
- 关于多文本分类任务 HOT 1
- Tokens difference between bert project and yours. Is run_classifier.py the only changed file? HOT 2
- 问题 HOT 5
- 关于中文二分类问题 HOT 5
- 关于显卡显存 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bert-classification-tutorial.