Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_lasserTagger时候,为什么一直会运行到tpu上面 #9

Open
RyzeLLC opened this issue Jul 12, 2021 · 12 comments
Open

run_lasserTagger时候,为什么一直会运行到tpu上面 #9

RyzeLLC opened this issue Jul 12, 2021 · 12 comments

Comments

@RyzeLLC
Copy link

RyzeLLC commented Jul 12, 2021

您好,我运行laserTagger时候,do_export设置True,train和eval设置为false。 一直提示
AttributeError: module 'tensorflow.contrib.tpu.python.ops.tpu_ops' has no attribute 'tpu_replicate_metadata'

按理说不应该会在TPU上运行啊。。希望得到您的解答
谢谢

@425776024
Copy link
Owner

您好,我运行laserTagger时候,do_export设置True,train和eval设置为false。 一直提示
AttributeError: module 'tensorflow.contrib.tpu.python.ops.tpu_ops' has no attribute 'tpu_replicate_metadata'

按理说不应该会在TPU上运行啊。。希望得到您的解答
谢谢

你好,tf版本是正确的?

@RyzeLLC
Copy link
Author

RyzeLLC commented Jul 12, 2021

您好,我没有按照您的requirement安装。。。我的是tf1.13.1
我按照您的配置都运行不了

@425776024
Copy link
Owner

425776024 commented Jul 12, 2021

您好,我没有按照您的requirement安装。。。我的是tf1.13.1
我按照您的配置都运行不了

我的感觉,你仅升级到tf1.15试试tensorflow-gpu==1.15

@RyzeLLC
Copy link
Author

RyzeLLC commented Jul 12, 2021 via email

@425776024
Copy link
Owner

GitHub同号,不过最近也很忙,不能参与深度debug

@RyzeLLC
Copy link
Author

RyzeLLC commented Jul 12, 2021 via email

@425776024
Copy link
Owner

加QQ我直接发最后运行的压缩包吧。这个当初随便上传了上来,没仔细考虑过你们的环境安装

@RyzeLLC
Copy link
Author

RyzeLLC commented Jul 12, 2021 via email

@425776024
Copy link
Owner

嗯嗯。那我先安装tf1.15试一下 您那边有能正常运行的laserTagger代码么?方便发我一份么?  git上的实在是运行不了

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月12日(星期一) 下午4:20 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [425776024/lasertagger-chinese] run_lasserTagger时候,为什么一直会运行到tpu上面 (#9) GitHub同号,不过最近也很忙,不能参与深度debug — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

还有,不能正常运行可能与./corpus下数据不多有关,我提供的那点数据,是不能正常训练的!

@RyzeLLC
Copy link
Author

RyzeLLC commented Jul 12, 2021 via email

@skywindy
Copy link

skywindy commented Jan 10, 2023

我遇到了相似的问题,请教大佬们。
predict_utils.py 中的predict_batch函数,self._id_2_tag[label_id] for label_id in example.get_token_labels() 有的序列中会有-2这种id,不知道咋产生的,就报错了。
[819, 884, 318, 435, 906, 928, 928, 928, 928, 928, 928, 928, 928, 921, 113, 214, 732, 25, 456, 637, 227, 893, 414, 703, 276, 497, 690, 329, 884, -2, 414, 828, 252, 87, 344, 536, 690, 414, 299, 932, 118, 229, 217, 489]

@dmmhk
Copy link

dmmhk commented May 15, 2024

能发我一份正常的吗?[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants