[Tensorflow Nightly] Type Error in `graph_def_versions`
@reedwm FYI ;)  @rjpower seems like your change in 8a216d2c29881745c9851dd3e22b11eca56b96c3 introduced a bug @DEKHTIARJonathan,
Thank you for reporting the bug. This bug exists in TF-Nightly **v2.13.0-dev20230216** Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/76773dc7e44d63a28f9fe1b413b4f2d0/2-13-0-dev20230216.ipynb).

As a work-around, Could you please give a try with **!pip install tf-nightly==2.13.0-dev20230215** where the type error was not exist. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/1daed70e507d859881747ed53774c4a1/2-13-0-dev20230215.ipynb). Thank you! Testing in https://github.com/horovod/horovod/pull/3854. I can confirm that tf-nightly==2.13.0.dev20230215 works for us:
https://github.com/horovod/horovod/actions/runs/4211870049/jobs/7310498369
while tf-nightly==2.13.0.dev20230216 fails:
https://github.com/horovod/horovod/actions/runs/4201440008/jobs/7290427072

It looks like tf-nightly==2.13.0.dev20230218 works again:
https://github.com/horovod/horovod/actions/runs/4211705996/jobs/7311034243 Is this issue part of tensorflow==2.12.0rc0?

https://buildkite.com/horovod/horovod/builds/8991#01865f8a-8aad-465f-a103-2bc7dc4660b4/6-10595 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.
 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/59715">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/59715">No</a>

### Issue Type

Bug

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

Yes

### Tensorflow Version

2.13.0-dev20230216


### Standalone code to reproduce the issue

```python
import tensorflow as tf

def generate_model():
  return tf.keras.models.Sequential([
    tf.keras.layers.Input(shape=(256, 256, 32)),
    tf.keras.layers.Conv2D(32, (3, 3), padding='same'),
    tf.keras.layers.Activation('relu'),
    tf.keras.layers.Conv2D(32, (3, 3)),
    tf.keras.layers.Activation('relu'),
    tf.keras.layers.MaxPooling2D(pool_size=(2, 2)),
    tf.keras.layers.Dropout(0.25),
    tf.keras.layers.Conv2D(64, (3, 3), padding='same'),
    tf.keras.layers.Activation('relu'),
    tf.keras.layers.Conv2D(64, (3, 3)),
    tf.keras.layers.Activation('relu'),
    tf.keras.layers.MaxPooling2D(pool_size=(2, 2)),
    tf.keras.layers.Dropout(0.25),
    tf.keras.layers.Flatten(),
    tf.keras.layers.Dense(512),
    tf.keras.layers.Activation('relu'),
    tf.keras.layers.Dropout(0.5),
    tf.keras.layers.Dense(10),
    tf.keras.layers.Activation('softmax')
  ])

model = generate_model()
```


### Relevant log output

```python
Which produces:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in generate_model
  File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/trackable/base.py", line 205, in _method_wrapper
    result = method(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/framework/ops.py", line 3243, in graph_def_versions
    return versions_pb2.VersionDef.FromString(self._version_def)
TypeError: expected bytes, tensorflow.python.client._pywrap_tf_session.StringBuffer found
```
