WARNING:absl:Found untraced functions such as _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op while saving (showing 5 of 6). These functions will not be directly callable after loading.
Hi, @clime 

Apologize for the delay and as far I know, I think this warning can be safely ignored as you can find the same warning even in [Tensorflow-Tutorial](https://www.tensorflow.org/text/tutorials/text_generation#export_the_generator) and that warnings are that function could not be traced. It should be safe to ignore.

`model.save() `will not only try to save the weights/variables, but also trace functions of the model and save their graph representations. This is what is failing for that function, and the warnings tell you about that.

If you want to continue training a model, you probably want to recreate the model from Python code anyway, and load/save just the weights. The `tf.keras.callbacks.BackupAndRestore `does this automatically at the end of each epoch. So if you interrupt the training script, next time you start it, it should automatically pick up from the beginning of the interrupted epoch.

As far as know these functions are needed while training the model I think those warnings are coming while training the model.

You can refer this [Stack overflow answer](https://stackoverflow.com/questions/65697623/tensorflow-warning-found-untraced-functions-such-as-lstm-cell-6-layer-call-and) also which supports ignoring those warnings.

If you're looking to disable `absl INFO and WARNING log `messages please use below code snippet:

```
import absl.logging
absl.logging.set_verbosity(absl.logging.ERROR)
```
I hope I answered your questions and if I miss something here, Please let us know ? Thank you! Thanks, but I don't want to suppress the warning and I would also prefer not to ignore it. There should be a clean way to get rid of them. 

My questions are:

1) Why traces of these particular functions cannot be saved?
2) If I decide to save the model without traces, will I be able to later load the model without recompiling and use it for evaluation?
3) If I compile the model (`load_model(compile=True)`), will these jit functions be regenerated?
4) Why would the get_config() method be only needed for all custom layers/models (I don't actually have any custom layers or models) when I disable saving the traces? Why is this `get_config()` method relevant at all?
 This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.
 ping :) Hi, @clime 

Apologize for the delay and I found similar issue [#47554](https://github.com/tensorflow/tensorflow/issues/47554), If you save your model in `SavedModel` format which is the more comprehensive save format that saves the model architecture, weights, and the traced Tensorflow subgraphs of the call functions. This enables Keras to restore both built-in layers as well as custom objects and if saved model reloads without any change in model architecture, layers or Parameters then there shouldn't be any problem.

If you're saving your model in` .h5` format then you won't get any such warnings 

Configuration of a Sequential model or Functional API model, These types of models are explicit graphs of layers their configuration is always available in a structured form and `get_config()` and `from_config()` API's calling will return a Python dict containing the configuration of the model. The same model can then be reconstructed via `Sequential.from_config(config)` (for a Sequential model) or `Model.from_config(config) `(for a Functional API model).

If you save the model in `SavedModel` format without traces, you can load the model without recompilation by doing `load_model(compile=False)` and if you compile the model `load_model(compile=True)` as far I know these jit functions warnings may come, you can refer our official documentation for [Save and load Keras models ](https://www.tensorflow.org/guide/keras/save_and_serialize#savedmodel_format) and also please refer this [answer](https://stackoverflow.com/questions/65697623/tensorflow-warning-found-untraced-functions-such-as-lstm-cell-6-layer-call-and#:~:text=If%20you%20ignore,environment%20after%20training.) on stackoverflow, I hope I'm able to answer your questions. 

If you still need any further help please let us know ? Thank you!





 This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59694">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59694">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Support

### Have you reproduced the bug with TF nightly?

No

### Source

binary

### Tensorflow Version

2.11

### Custom Code

Yes

### OS Platform and Distribution

Ubuntu 22.04.1 LTS

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
The warning appears:


WARNING:absl:Found untraced functions such as _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op while saving (showing 5 of 6). These functions will not be directly callable after loading.
```

Can you please, explain, what is meant by this warning and how to fix it? I have the following accompanying questions to it:

* Function traces are basically graph representations of functions or something else?

* If these jit traces are not found in a loaded model, will they be generated again? Is model compilation needed for regeneration?

* Are these functions needed only for training or also for prediction/evaluation?

I have found in Keras docs (https://keras.io/api/models/model_saving_apis/) that I can disable saving the traces with the following note:
"Disabling this will decrease serialization time and reduce file size, but it requires that all custom layers/models implement a get_config() method."

* Why would the `get_config()` method be only needed when I disable saving the traces?

Thanks in advance for any explanations given!

```shell
### Reproducer

It's not my code but the warnings appear e.g. here: https://jovian.com/blog/tutorials/%20parameter-logging-wandb-ai
```

```
### Relevant log output

WARNING:absl:Found untraced functions such as _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op while saving (showing 5 of 6). These functions will not be directly callable after loading.
```
</details>