How to save keras custom model with dynamic input shape in SaveModel format?
问题 I have a custom model with dynamic input shape (flexible second dimension). I need to save it in SaveModel format. But it saves only one signature (the first used). When I try to use different signature after loading - I am getting an error: Python inputs incompatible with input_signature My code is as follows: seq_len = 2 batch_size = 3 import tensorflow as tf class CustomModule(tf.keras.Model): def __init__(self): super(CustomModule, self).__init__() self.v = tf.Variable(1.) #@tf.function