runtime error

Exit code: 1. Reason: = cls.from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/models/model.py", line 525, in from_config return functional_from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/models/functional.py", line 477, in functional_from_config process_layer(layer_data) File "/usr/local/lib/python3.10/site-packages/keras/src/models/functional.py", line 457, in process_layer layer = saving_utils.model_from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/legacy/saving/saving_utils.py", line 85, in model_from_config return serialization.deserialize_keras_object( File "/usr/local/lib/python3.10/site-packages/keras/src/legacy/saving/serialization.py", line 495, in deserialize_keras_object deserialized_obj = cls.from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/models/model.py", line 525, in from_config return functional_from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/models/functional.py", line 496, in functional_from_config process_node(layer, node_data) File "/usr/local/lib/python3.10/site-packages/keras/src/models/functional.py", line 443, in process_node layer(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/keras/src/utils/traceback_utils.py", line 122, in error_handler raise e.with_traceback(filtered_tb) from None File "/home/user/app/app.py", line 66, in compute_mask return tf.math.not_equal(inputs, 0) ValueError: A KerasTensor cannot be used as input to a TensorFlow function. A KerasTensor is a symbolic placeholder for a shape and dtype, used when constructing Keras Functional models or Keras Functions. You can only use it as input to a Keras layer or a Keras operation (from the namespaces `keras.layers` and `keras.operations`). You are likely doing something like: ``` x = Input(...) ... tf_fn(x) # Invalid. ``` What you should do instead is wrap `tf_fn` in a layer: ``` class MyLayer(Layer): def call(self, x): return tf_fn(x) x = MyLayer()(x) ```

Container logs:

Fetching error logs...