bojone / bert4keras

keras implement of transformers for humans
https://kexue.fm/archives/6915
Apache License 2.0
5.37k stars 927 forks source link

ignore this issue #375

Closed rxc205 closed 3 years ago

rxc205 commented 3 years ago

提问时请尽可能提供如下信息:

基本信息

核心代码

代码部分,data_utli.py中部分修改了some_text正常产出了训练数据,在run_pretraining.py中也是运行起来了,只是在出现了这个提示,我不清楚什么原因。

输出信息

...
Trainable params: 102,290,312
Non-trainable params: 0
__________________________________________________________________________________________________
2021-07-30 14:48:41.759558: W tensorflow/core/grappler/utils/graph_view.cc:830] No registered 'MultiDeviceIteratorFromStringHandle' OpKernel for GPU devices compatible with node {{node MultiDeviceIteratorFromStringHandle}}
    .  Registered:  device='CPU'

2021-07-30 14:48:41.760145: W tensorflow/core/grappler/utils/graph_view.cc:830] No registered 'MultiDeviceIteratorGetNextFromShard' OpKernel for GPU devices compatible with node {{node MultiDeviceIteratorGetNextFromShard}}
    .  Registered:  device='CPU'

Train on 10 steps
Epoch 1/10
...
...

自我尝试

不管什么问题,请先尝试自行解决,“万般努力”之下仍然无法解决再来提问。此处请贴上你的努力过程。 请教一些苏老师,这个No registered ... ... 'CPU'是什么意思?

bojone commented 3 years ago

提示就提示,关键是最终开始训练没?开始训练了就不用管它。