# \#model-compil

**URL:** https://discuss.ai.google.dev/tag/model-compil/121.md

[Latest](https://discuss.ai.google.dev/latest.md) · [Categories](https://discuss.ai.google.dev/categories.md) · [Tags](https://discuss.ai.google.dev/tags.md)

---

## [JIT compile set to false in compile function and set to true globally](https://discuss.ai.google.dev/t/jit-compile-set-to-false-in-compile-function-and-set-to-true-globally/30974)

<div class="topic-metadata">

**Author:** [@MLEnthusiastic](https://discuss.ai.google.dev/u/MLEnthusiastic)\
**Replies:** 1\
**Last updated:** [November 7, 2024, 4:19pm UTC](https://discuss.ai.google.dev/t/jit-compile-set-to-false-in-compile-function-and-set-to-true-globally/30974 "2024-11-07T16:19:03Z")

</div>

Hi, I have only one model in my code and before compiling the model I am setting this: tf.config.optimizer.set\_jit(True) but when I compile the model, I set the jit\_compile parameter to false. What I am seeing is, wh…

---

## [What's best practice for using XLA?](https://discuss.ai.google.dev/t/whats-best-practice-for-using-xla/27988)

<div class="topic-metadata">

**Author:** [@loneil](https://discuss.ai.google.dev/u/loneil)\
**Replies:** 2\
**Last updated:** [November 30, 2023, 2:06pm UTC](https://discuss.ai.google.dev/t/whats-best-practice-for-using-xla/27988 "2023-11-30T14:06:11Z")

</div>

Hi, Quick question I hope! We’ve been using the following in our codebase for the longest time: tf.config.optimizer.set\_jit(True) I recently also re-discovered the jit\_compile=True argument for model.compile() What’…
