# tf.compat.v1.OptimizerOptions

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.7.4/tensorflow/core/protobuf/config.proto) |

A ProtocolMessage

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `cpu_global_jit` | `bool cpu_global_jit` |
| `do_common_subexpression_elimination` | `bool do_common_subexpression_elimination` |
| `do_constant_folding` | `bool do_constant_folding` |
| `do_function_inlining` | `bool do_function_inlining` |
| `global_jit_level` | `GlobalJitLevel global_jit_level` |
| `max_folded_constant_in_bytes` | `int64 max_folded_constant_in_bytes` |
| `opt_level` | `Level opt_level` |

<br />

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| DEFAULT | `0` |
| GlobalJitLevel | Instance of `google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper` |
| L0 | `-1` |
| L1 | `0` |
| Level | Instance of `google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper` |
| OFF | `-1` |
| ON_1 | `1` |
| ON_2 | `2` |

<br />