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的类?