We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Issue  Running T5 in colab TPU
Hi Team,

I was trying to do a pre training of T5 from scratch on colab. I could see if i install t5 using (pip install t5[gcp]), and tried to connect to execute ` tf.tpu.experimental.initialize_tpu_system(tpu)`, getting  below error.

`InvalidArgumentError: NodeDef expected inputs 'string' do not match 0 inputs specified; Op<name=_Send; signature=tensor:T -> ; attr=T:type; attr=tensor_name:string; attr=send_device:string; attr=send_device_incarnation:int; attr=recv_device:string; attr=client_terminated:bool,default=false; is_stateful=true>; NodeDef: {{node _Send}}`

If install/ upgrade tensorflow, it gets resolved, however import of t5 does not work as below.
`
import t5`

`NotFoundError: /usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so: undefined symbol: _ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefEN4absl11string_viewESt10unique_ptrINS0_15OpKernelFactoryESt14default_deleteIS8_EE`

Please let me know how if there is a way to resolve this.
Thanks.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 # Copyright 2020 The T5 Authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 """Install T5."""
16 
17 import os
18 import sys
19 import setuptools
20 
21 # To enable importing version.py directly, we add its path to sys.path.
22 version_path = os.path.join(os.path.dirname(__file__), 't5')
23 sys.path.append(version_path)
24 from version import __version__  # pylint: disable=g-import-not-at-top
25 
26 # Get the long description from the README file.
27 with open('README.md') as fp:
28   _LONG_DESCRIPTION = fp.read()
29 
30 setuptools.setup(
31     name='t5',
32     version=__version__,
33     description='Text-to-text transfer transformer',
34     long_description=_LONG_DESCRIPTION,
35     long_description_content_type='text/markdown',
36     author='Google Inc.',
37     author_email='no-reply@google.com',
38     url='http://github.com/google-research/text-to-text-transfer-transformer',
39     license='Apache 2.0',
40     packages=setuptools.find_packages(),
41     package_data={
42         '': ['*.gin'],
43     },
44     scripts=[],
45     install_requires=[
46         'absl-py',
47         'babel',
48         'gin-config',
49         'mesh-tensorflow[transformer]>=0.1.13',
50         'nltk',
51         'numpy',
52         'pandas',
53         'rouge-score',
54         'sacrebleu',
55         'scikit-learn',
56         'scipy',
57         'sentencepiece',
58         'six>=1.14',  # TODO(adarob): Remove once rouge-score is updated.
59         'tensorflow-text<2.3',  # TODO(adarob): Unpin once #320 is resolved.
60         'tfds-nightly',
61         'torch',
62         'transformers>=2.7.0',
63     ],
64     extras_require={
65         'gcp': ['gevent', 'google-api-python-client', 'google-compute-engine',
66                 'google-cloud-storage', 'oauth2client'],
67         'cache-tasks': ['apache-beam'],
68         'test': ['pytest'],
69     },
70     entry_points={
71         'console_scripts': [
72             't5_mesh_transformer = t5.models.mesh_transformer_main:console_entry_point',
73             't5_cache_tasks = t5.data.cache_tasks_main:console_entry_point'
74         ],
75     },
76     classifiers=[
77         'Development Status :: 4 - Beta',
78         'Intended Audience :: Developers',
79         'Intended Audience :: Science/Research',
80         'License :: OSI Approved :: Apache Software License',
81         'Topic :: Scientific/Engineering :: Artificial Intelligence',
82     ],
83     keywords='text nlp machinelearning',
84 )
85
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@
         'scipy',
         'sentencepiece',
         'six>=1.14',  # TODO(adarob): Remove once rouge-score is updated.
-        'tensorflow-text<2.3',  # TODO(adarob): Unpin once #320 is resolved.
+        'tensorflow-text',
         'tfds-nightly',
         'torch',
         'transformers>=2.7.0',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -56,7 +56,7 @@\n         'scipy',\n         'sentencepiece',\n         'six>=1.14',  # TODO(adarob): Remove once rouge-score is updated.\n-        'tensorflow-text<2.3',  # TODO(adarob): Unpin once #320 is resolved.\n+        'tensorflow-text',\n         'tfds-nightly',\n         'torch',\n         'transformers>=2.7.0',\n", "issue": "Issue  Running T5 in colab TPU\nHi Team,\r\n\r\nI was trying to do a pre training of T5 from scratch on colab. I could see if i install t5 using (pip install t5[gcp]), and tried to connect to execute ` tf.tpu.experimental.initialize_tpu_system(tpu)`, getting  below error.\r\n\r\n`InvalidArgumentError: NodeDef expected inputs 'string' do not match 0 inputs specified; Op<name=_Send; signature=tensor:T -> ; attr=T:type; attr=tensor_name:string; attr=send_device:string; attr=send_device_incarnation:int; attr=recv_device:string; attr=client_terminated:bool,default=false; is_stateful=true>; NodeDef: {{node _Send}}`\r\n\r\nIf install/ upgrade tensorflow, it gets resolved, however import of t5 does not work as below.\r\n`\r\nimport t5`\r\n\r\n`NotFoundError: /usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so: undefined symbol: _ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefEN4absl11string_viewESt10unique_ptrINS0_15OpKernelFactoryESt14default_deleteIS8_EE`\r\n\r\nPlease let me know how if there is a way to resolve this.\r\nThanks.\r\n\n", "before_files": [{"content": "# Copyright 2020 The T5 Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"Install T5.\"\"\"\n\nimport os\nimport sys\nimport setuptools\n\n# To enable importing version.py directly, we add its path to sys.path.\nversion_path = os.path.join(os.path.dirname(__file__), 't5')\nsys.path.append(version_path)\nfrom version import __version__  # pylint: disable=g-import-not-at-top\n\n# Get the long description from the README file.\nwith open('README.md') as fp:\n  _LONG_DESCRIPTION = fp.read()\n\nsetuptools.setup(\n    name='t5',\n    version=__version__,\n    description='Text-to-text transfer transformer',\n    long_description=_LONG_DESCRIPTION,\n    long_description_content_type='text/markdown',\n    author='Google Inc.',\n    author_email='no-reply@google.com',\n    url='http://github.com/google-research/text-to-text-transfer-transformer',\n    license='Apache 2.0',\n    packages=setuptools.find_packages(),\n    package_data={\n        '': ['*.gin'],\n    },\n    scripts=[],\n    install_requires=[\n        'absl-py',\n        'babel',\n        'gin-config',\n        'mesh-tensorflow[transformer]>=0.1.13',\n        'nltk',\n        'numpy',\n        'pandas',\n        'rouge-score',\n        'sacrebleu',\n        'scikit-learn',\n        'scipy',\n        'sentencepiece',\n        'six>=1.14',  # TODO(adarob): Remove once rouge-score is updated.\n        'tensorflow-text<2.3',  # TODO(adarob): Unpin once #320 is resolved.\n        'tfds-nightly',\n        'torch',\n        'transformers>=2.7.0',\n    ],\n    extras_require={\n        'gcp': ['gevent', 'google-api-python-client', 'google-compute-engine',\n                'google-cloud-storage', 'oauth2client'],\n        'cache-tasks': ['apache-beam'],\n        'test': ['pytest'],\n    },\n    entry_points={\n        'console_scripts': [\n            't5_mesh_transformer = t5.models.mesh_transformer_main:console_entry_point',\n            't5_cache_tasks = t5.data.cache_tasks_main:console_entry_point'\n        ],\n    },\n    classifiers=[\n        'Development Status :: 4 - Beta',\n        'Intended Audience :: Developers',\n        'Intended Audience :: Science/Research',\n        'License :: OSI Approved :: Apache Software License',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n    ],\n    keywords='text nlp machinelearning',\n)\n", "path": "setup.py"}], "after_files": [{"content": "# Copyright 2020 The T5 Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"Install T5.\"\"\"\n\nimport os\nimport sys\nimport setuptools\n\n# To enable importing version.py directly, we add its path to sys.path.\nversion_path = os.path.join(os.path.dirname(__file__), 't5')\nsys.path.append(version_path)\nfrom version import __version__  # pylint: disable=g-import-not-at-top\n\n# Get the long description from the README file.\nwith open('README.md') as fp:\n  _LONG_DESCRIPTION = fp.read()\n\nsetuptools.setup(\n    name='t5',\n    version=__version__,\n    description='Text-to-text transfer transformer',\n    long_description=_LONG_DESCRIPTION,\n    long_description_content_type='text/markdown',\n    author='Google Inc.',\n    author_email='no-reply@google.com',\n    url='http://github.com/google-research/text-to-text-transfer-transformer',\n    license='Apache 2.0',\n    packages=setuptools.find_packages(),\n    package_data={\n        '': ['*.gin'],\n    },\n    scripts=[],\n    install_requires=[\n        'absl-py',\n        'babel',\n        'gin-config',\n        'mesh-tensorflow[transformer]>=0.1.13',\n        'nltk',\n        'numpy',\n        'pandas',\n        'rouge-score',\n        'sacrebleu',\n        'scikit-learn',\n        'scipy',\n        'sentencepiece',\n        'six>=1.14',  # TODO(adarob): Remove once rouge-score is updated.\n        'tensorflow-text',\n        'tfds-nightly',\n        'torch',\n        'transformers>=2.7.0',\n    ],\n    extras_require={\n        'gcp': ['gevent', 'google-api-python-client', 'google-compute-engine',\n                'google-cloud-storage', 'oauth2client'],\n        'cache-tasks': ['apache-beam'],\n        'test': ['pytest'],\n    },\n    entry_points={\n        'console_scripts': [\n            't5_mesh_transformer = t5.models.mesh_transformer_main:console_entry_point',\n            't5_cache_tasks = t5.data.cache_tasks_main:console_entry_point'\n        ],\n    },\n    classifiers=[\n        'Development Status :: 4 - Beta',\n        'Intended Audience :: Developers',\n        'Intended Audience :: Science/Research',\n        'License :: OSI Approved :: Apache Software License',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n    ],\n    keywords='text nlp machinelearning',\n)\n", "path": "setup.py"}]}