Migrating T2T fork to TF2.7.4
@branko-fathom,
TensorFlow 2 is fundamentally different from TF1.x in several ways. You can still run unmodified TF1.x code ([except for contrib](https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md)) against TF2 binary installations like so.

Also please take a look at this official tf1.x to tf2.x migration document for reference.
https://www.tensorflow.org/guide/migrate
https://www.tensorflow.org/guide/migrate/migrate_tf2

Thank you!
 This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. 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/60683">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/60683">No</a>

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

Support

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

No

### Source

source

### Tensorflow Version

2.7.4

### Custom Code

Yes

### OS Platform and Distribution

_No response_

### 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?

My org is looking to migrate our Tensor2Tensor fork from TF1 to TF2.7.4 by the end of June in order to not lose TPU access in GCP. The current plan for our fork is to utilize the `tensorflow.compat.v1` APIs (along with updating `contrib` imports to use `tensorflow_addons` and `tf_slim`) and `tf.disable_v2_behavior()`. Is this all that's required to get t2t working with TF2?

### Standalone code to reproduce the issue

```shell
N/A
```


### Relevant log output

_No response_</details>