gonganDV 2020-11-18 12:41 采纳率: 0%
浏览 173

Python inputs incompatible with input_signature:

ValueError: Python inputs incompatible with input_signature:
inputs: (
Tensor("ExpandDims_2:0", shape=(1, 1), dtype=int64),
Tensor("cnn__encoder/StatefulPartitionedCall:0", shape=(1, 64, 256), dtype=float32),
Tensor("rnn__decoder/StatefulPartitionedCall:1", shape=(1, 512), dtype=float32))
input_signature: (
TensorSpec(shape=(1, 1), dtype=tf.int32, name=None),
TensorSpec(shape=(1, 64, 256), dtype=tf.float32, name=None),
TensorSpec(shape=(1, 512), dtype=tf.float32, name=None))

Github issue 链接:https://github.com/tensorflow/tensorflow/issues/42319

https://github.com/tensorflow/tensorflow/issues/44512

在tensorflow提问题都三个月了没人理????试了各种方法都不行。难道TFLiteConvert不能转换带有@tf.function(input_signature=[])的tf.kearas.Model的类?

  • 写回答

1条回答 默认 最新

  • 飞桨PaddlePaddle 企业官方账号 2020-12-01 07:05
    关注

    来Paddle 有人理😏

    评论
编辑
预览

报告相同问题?