payload: {"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/32614","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/32614/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/32614/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/32614/events","html_url":"https://github.com/tensorflow/tensorflow/issues/32614","id":495105055,"node_id":"MDU6SXNzdWU0OTUxMDUwNTU=","number":32614,"title":"[TF2.0] can't restore path with brackets","user":{"login":"morgangiraud","id":1278248,"node_id":"MDQ6VXNlcjEyNzgyNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1278248?v=4","gravatar_id":"","url":"https://api.github.com/users/morgangiraud","html_url":"https://github.com/morgangiraud","followers_url":"https://api.github.com/users/morgangiraud/followers","following_url":"https://api.github.com/users/morgangiraud/following{/other_user}","gists_url":"https://api.github.com/users/morgangiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/morgangiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morgangiraud/subscriptions","organizations_url":"https://api.github.com/users/morgangiraud/orgs","repos_url":"https://api.github.com/users/morgangiraud/repos","events_url":"https://api.github.com/users/morgangiraud/events{/privacy}","received_events_url":"https://api.github.com/users/morgangiraud/received_events","type":"User","site_admin":false},"labels":[{"id":1160540362,"node_id":"MDU6TGFiZWwxMTYwNTQwMzYy","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.0","name":"TF 2.0","color":"e79b38","default":false},{"id":1097546578,"node_id":"MDU6TGFiZWwxMDk3NTQ2NTc4","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras","name":"comp:keras","color":"0052cc","default":false},{"id":386191887,"node_id":"MDU6TGFiZWwzODYxOTE4ODc=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response","name":"stat:awaiting response","color":"f4b400","default":false},{"id":473184161,"node_id":"MDU6TGFiZWw0NzMxODQxNjE=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/type:support","name":"type:support","color":"159b2e","default":false}],"state":"open","locked":false,"assignee":{"login":"gowthamkpr","id":47574994,"node_id":"MDQ6VXNlcjQ3NTc0OTk0","avatar_url":"https://avatars0.githubusercontent.com/u/47574994?v=4","gravatar_id":"","url":"https://api.github.com/users/gowthamkpr","html_url":"https://github.com/gowthamkpr","followers_url":"https://api.github.com/users/gowthamkpr/followers","following_url":"https://api.github.com/users/gowthamkpr/following{/other_user}","gists_url":"https://api.github.com/users/gowthamkpr/gists{/gist_id}","starred_url":"https://api.github.com/users/gowthamkpr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gowthamkpr/subscriptions","organizations_url":"https://api.github.com/users/gowthamkpr/orgs","repos_url":"https://api.github.com/users/gowthamkpr/repos","events_url":"https://api.github.com/users/gowthamkpr/events{/privacy}","received_events_url":"https://api.github.com/users/gowthamkpr/received_events","type":"User","site_admin":false},"assignees":[{"login":"gowthamkpr","id":47574994,"node_id":"MDQ6VXNlcjQ3NTc0OTk0","avatar_url":"https://avatars0.githubusercontent.com/u/47574994?v=4","gravatar_id":"","url":"https://api.github.com/users/gowthamkpr","html_url":"https://github.com/gowthamkpr","followers_url":"https://api.github.com/users/gowthamkpr/followers","following_url":"https://api.github.com/users/gowthamkpr/following{/other_user}","gists_url":"https://api.github.com/users/gowthamkpr/gists{/gist_id}","starred_url":"https://api.github.com/users/gowthamkpr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gowthamkpr/subscriptions","organizations_url":"https://api.github.com/users/gowthamkpr/orgs","repos_url":"https://api.github.com/users/gowthamkpr/repos","events_url":"https://api.github.com/users/gowthamkpr/events{/privacy}","received_events_url":"https://api.github.com/users/gowthamkpr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2019-09-18T09:30:55Z","updated_at":"2019-09-21T08:09:15Z","closed_at":null,"author_association":"NONE","body":"**System information**\r\n- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes\r\n- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): OSX\r\n- TensorFlow installed from (source or binary): `pip install tensorflow==2.0.0-rc1`\r\n- TensorFlow version (use command below): v2.0.0-rc0-101-gd2d2566eef 2.0.0-rc1\r\n- Python version: 3.6.8\r\n- CUDA/cuDNN version: `None`\r\n- GPU model and memory: `None`\r\n\r\n**Describe the current behavior**\r\nI can't restore a model stored ina directory containing a bracket\r\n\r\n**Describe the expected behavior**\r\nI can restore a model stored ina directory containing a bracket\r\n\r\n**Code to reproduce the issue**\r\n```python\r\nimport os\r\nimport shutil\r\nimport tensorflow as tf\r\n\r\ncurrent_dir = os.path.realpath(os.path.dirname(__file__))\r\nsave_dir = os.path.join(current_dir, 'testhop')\r\nsave_dir_wbracket = os.path.join(current_dir, 'test[hop')\r\n\r\n\r\nif os.path.isdir(save_dir):\r\n    shutil.rmtree(save_dir)\r\nos.mkdir(save_dir)\r\nassert os.path.isdir(save_dir)\r\n\r\nif os.path.isdir(save_dir_wbracket):\r\n    shutil.rmtree(save_dir_wbracket)\r\nos.mkdir(save_dir_wbracket)\r\nassert os.path.isdir(save_dir_wbracket)\r\n\r\nmodel = tf.keras.models.Sequential([\r\n    tf.keras.layers.Dense(\r\n        16, batch_input_shape=[256, 1], activation='relu'),\r\n    tf.keras.layers.Dense(16, activation='tanh'),\r\n    tf.keras.layers.Dense(1),\r\n])\r\n\r\nlr = tf.Variable(1.)\r\nreg_param = tf.Variable(1.)\r\noptim = tf.keras.optimizers.SGD(lr)\r\n\r\nckpt = tf.train.Checkpoint(\r\n    model=model,\r\n    lr=lr,\r\n    reg_param=reg_param,\r\n)\r\n\r\nmanager = tf.train.CheckpointManager(ckpt, save_dir, max_to_keep=1)\r\nmanager_wbracket = tf.train.CheckpointManager(ckpt, save_dir_wbracket, max_to_keep=1)\r\n\r\nmanager.save()\r\nassert os.path.isfile(os.path.join(save_dir, 'checkpoint'))\r\nmanager_wbracket.save()\r\nassert os.path.isfile(os.path.join(save_dir_wbracket, 'checkpoint'))\r\n\r\n# Works\r\nprint(manager.latest_checkpoint)\r\nckpt.restore(manager.latest_checkpoint)\r\n\r\n# Does not work\r\nprint(manager_wbracket.latest_checkpoint)\r\nckpt.restore(manager_wbracket.latest_checkpoint)\r\n```\r\n\r\n**Other info / logs**\r\nNote: Saving is working\r\n\r\nOutputs:\r\n```\r\n/Users/morgangiraud/Sites/git/ray/python/ray/tune/examples/pbt/PBTTrain/testhop/ckpt-1\r\n/Users/morgangiraud/Sites/git/ray/python/ray/tune/examples/pbt/PBTTrain/test[hop/ckpt-2\r\nTraceback (most recent call last):\r\n  File \"debug.py\", line 51, in <module>\r\n    ckpt.restore(manager_wbracket.latest_checkpoint)\r\n  File \"/Users/morgangiraud/miniconda3/envs/ray/lib/python3.6/site-packages/tensorflow_core/python/training/tracking/util.py\", line 1971, in restore\r\n    status = self._saver.restore(save_path=save_path)\r\n  File \"/Users/morgangiraud/miniconda3/envs/ray/lib/python3.6/site-packages/tensorflow_core/python/training/tracking/util.py\", line 1228, in restore\r\n    reader = pywrap_tensorflow.NewCheckpointReader(save_path)\r\n  File \"/Users/morgangiraud/miniconda3/envs/ray/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py\", line 873, in NewCheckpointReader\r\n    return CheckpointReader(compat.as_bytes(filepattern))\r\n  File \"/Users/morgangiraud/miniconda3/envs/ray/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py\", line 885, in __init__\r\n    this = _pywrap_tensorflow_internal.new_CheckpointReader(filename)\r\ntensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files\r\n```"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/533778438","html_url":"https://github.com/tensorflow/tensorflow/issues/32614#issuecomment-533778438","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/32614","id":533778438,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMzc3ODQzOA==","user":{"login":"morgangiraud","id":1278248,"node_id":"MDQ6VXNlcjEyNzgyNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1278248?v=4","gravatar_id":"","url":"https://api.github.com/users/morgangiraud","html_url":"https://github.com/morgangiraud","followers_url":"https://api.github.com/users/morgangiraud/followers","following_url":"https://api.github.com/users/morgangiraud/following{/other_user}","gists_url":"https://api.github.com/users/morgangiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/morgangiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morgangiraud/subscriptions","organizations_url":"https://api.github.com/users/morgangiraud/orgs","repos_url":"https://api.github.com/users/morgangiraud/repos","events_url":"https://api.github.com/users/morgangiraud/events{/privacy}","received_events_url":"https://api.github.com/users/morgangiraud/received_events","type":"User","site_admin":false},"created_at":"2019-09-21T08:09:15Z","updated_at":"2019-09-21T08:09:15Z","author_association":"NONE","body":"Well, it depends on your policy I guess. \r\nThe problem is not only mine (based on the issue you linked) and is not solved (since I can reproduce it) but it is not happening on all platform so I don't know if this is the kind of bug the TF team is going after."}}
other: {"actor":{"display_login":"morgangiraud"}}