When writing customized tf.keras layers, we have to implement the "call" method, since a object of a class can be called like a function with "()" only(?) if the object has a valid "__call__" method. while I didn't find something like
class tf.keras.model():
def __call__(self, input):
return self.call(input)
in the keras.model source, how could all this work?