TFX导致TypeCheckerror:输出类型提示违反[train]:Expector< class< apache_beam.pvalue.pvalue.pdone.pdone''
我尝试运行TFX文档中提供的教程,并且在通往元数据的路径方面面临问题。
我已经在本期中详细描述了查询 https://github.com/github.com/tensorflow/tensorflow/tfx/问题/4993 。
我正在使用的文档是 https:> https://www.tensorflow.org/tflow.org/tffx/tuterorials/ tfx/penguin_tfdv 。
I tried running the tutorial provided in tfx documentation and I am facing a problem with the path to metadata.
I have described the query in detail in this issue https://github.com/tensorflow/tfx/issues/4993.
The documentation I am using is https://www.tensorflow.org/tfx/tutorials/tfx/penguin_tfdv.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用最新版本的TFX时,应解决此错误。我在COLAB中使用TFX Verison
1.9.0
,Tensorflow版本2.9.0
在COLAB中运行了相同的代码,而且我没有任何typecheckerror
。请找到工作This error should be fixed when using latest version of TFX. I ran the same code in colab with TFX verison
1.9.0
, Tensorflow version2.9.0
and I haven't got anyTypeCheckError
. Please find the working gist here. Thank you!看来根本原因是使用与TFX版本不相容的Apache Beam版本。使用TFX时,您可能需要固定光束版本。
It looks like the root cause was using a version of Apache Beam that was incompatible with the version of TFX. When using TFX, you may want to pin your Beam version.