Tensorflow TFX抱怨上游组件未在交互模式下运行

Tensorflow TFX抱怨上游组件未在交互模式下运行,tensorflow,tfx,Tensorflow,Tfx,请在这里找到笔记本 上游组件(本案例中的转换示例)使用context.run()成功执行,但培训师仍抱怨没有执行 使用TFX 0.22时,笔记本可以正常运行,但在TFX 0.23中出现此错误 ValueError Traceback (most recent call last) <ipython-input-26-a501b7646f34> in <module>() ----> 1 context

请在这里找到笔记本

上游组件(本案例中的转换示例)使用context.run()成功执行,但培训师仍抱怨没有执行

使用TFX 0.22时,笔记本可以正常运行,但在TFX 0.23中出现此错误


ValueError                                Traceback (most recent call last)
<ipython-input-26-a501b7646f34> in <module>()
----> 1 context.run(trainer)

5 frames
/usr/local/lib/python3.6/dist-packages/tfx/components/base/base_driver.py in resolve_input_artifacts(self, input_dict, exec_properties, driver_args, pipeline_info)
    158                 'components must first be run with '
    159                 '`interactive_context.run(component)` before their outputs can '
--> 160                 'be used in downstream components.') % (artifact, name))
    161         result[name] = artifacts
    162       else:

ValueError: Unresolved input channel Artifact(artifact: custom_properties {
  key: "name"
  value {
    string_value: "transformed_examples"
  }
}
custom_properties {
  key: "pipeline_name"
  value {
    string_value: "tfx-segmentation"
  }
}
custom_properties {
  key: "producer_component"
  value {
    string_value: "Transform"
  }
}
, artifact_type: name: "Examples"
properties {
  key: "span"
  value: INT
}
properties {
  key: "split_names"
  value: STRING
}
properties {
  key: "version"
  value: INT
}
) for input 'examples' was passed in interactive mode. When running in interactive mode, upstream components must first be run with `interactive_context.run(component)` before their outputs can be used in downstream components.

ValueError回溯(最近一次调用上次)
在()
---->1.跑步(培训师)
5帧
/解析输入工件(self、输入dict、执行属性、驱动参数、管道信息)中的usr/local/lib/python3.6/dist-packages/tfx/components/base/base\u driver.py
158“部件必须首先与一起运行”
159'`interactive_context.run(component)`
-->160“可用于下游组件”。)%(工件,名称))
161结果[名称]=工件
162.其他:
ValueError:未解析的输入通道项目(项目:自定义\u属性{
键:“名称”
价值观{
字符串\u值:“转换的\u示例”
}
}
自定义属性{
关键字:“管道名称”
价值观{
字符串值:“tfx分段”
}
}
自定义属性{
关键字:“生产商_组件”
价值观{
字符串值:“转换”
}
}
,工件类型:名称:“示例”
性质{
键:“span”
值:INT
}
性质{
关键字:“拆分名称”
值:字符串
}
性质{
关键字:“版本”
值:INT
}
)对于输入,“示例”以交互模式传递。在交互模式下运行时,上游组件必须首先使用“interactive_context.run(component)”运行,然后才能在下游组件中使用其输出。

您可以在TFX版本0.24.1上试用,看看效果如何?谢谢你能在TFX版本0.24.1上试用一下,看看效果如何吗?谢谢