小编Nem*_*dám的帖子

升级到tensorflow 2.9时输入ERROR

升级到 tensorflow 2.9 后,使用 tf 2.8 调用 model.fit() 时收到以下错误消息,没有错误。身体总是不舒服,但令人担忧。

2022-06-21 12:42:58.930086: W tensorflow/core/common_runtime/forward_type_inference.cc:231] Type inference failed. This indicates an invalid graph that escaped type checking. Error message: INVALID_ARGUMENT: expected compatible input types, but input 1:
type_id: TFT_OPTIONAL
args {
  type_id: TFT_PRODUCT
  args {
    type_id: TFT_TENSOR
    args {
      type_id: TFT_BOOL
    }
  }
}
 is neither a subtype nor a supertype of the combined inputs preceding it:
type_id: TFT_OPTIONAL
args {
  type_id: TFT_PRODUCT
  args {
    type_id: TFT_TENSOR
    args {
      type_id: TFT_LEGACY_VARIANT
    } …
Run Code Online (Sandbox Code Playgroud)

types upgrade keras tensorflow

9
推荐指数
1
解决办法
2275
查看次数

tfRecords 在 TF2 中显示有问题

我有几个自己制作的 tfrecord 文件。它们在 tf1 中运行良好,我在几个项目中使用了它们。但是,如果我想在带有 tf2(运行 model_main_tf2.py 脚本)的 Tensorflow Object Detection API 中使用它们,我会在 tensorboard 中看到以下内容:

张量板图像选项卡

它完全叠加了图像。(运行 /work/tfapi/research/object_detection/model_main.py 脚本甚至 legacy_train 它们看起来不错)tf2 是否在 tfrecords 中使用了不同类型的编码?或者什么会导致这样的结果?

tensorboard tfrecord object-detection-api tensorflow2.0 tensorflow2

5
推荐指数
0
解决办法
132
查看次数