{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23763","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23763/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23763/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23763/events","html_url":"https://github.com/tensorflow/tensorflow/issues/23763","id":381034361,"node_id":"MDU6SXNzdWUzODEwMzQzNjE=","number":23763,"title":"Eager Execution doesnt save .meta file","user":{"login":"vishalghor","id":23045660,"node_id":"MDQ6VXNlcjIzMDQ1NjYw","avatar_url":"https://avatars1.githubusercontent.com/u/23045660?v=4","gravatar_id":"","url":"https://api.github.com/users/vishalghor","html_url":"https://github.com/vishalghor","followers_url":"https://api.github.com/users/vishalghor/followers","following_url":"https://api.github.com/users/vishalghor/following{/other_user}","gists_url":"https://api.github.com/users/vishalghor/gists{/gist_id}","starred_url":"https://api.github.com/users/vishalghor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishalghor/subscriptions","organizations_url":"https://api.github.com/users/vishalghor/orgs","repos_url":"https://api.github.com/users/vishalghor/repos","events_url":"https://api.github.com/users/vishalghor/events{/privacy}","received_events_url":"https://api.github.com/users/vishalghor/received_events","type":"User","site_admin":false},"labels":[{"id":736653459,"node_id":"MDU6TGFiZWw3MzY2NTM0NTk=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/comp:eager","name":"comp:eager","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"alextp","id":5061,"node_id":"MDQ6VXNlcjUwNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/5061?v=4","gravatar_id":"","url":"https://api.github.com/users/alextp","html_url":"https://github.com/alextp","followers_url":"https://api.github.com/users/alextp/followers","following_url":"https://api.github.com/users/alextp/following{/other_user}","gists_url":"https://api.github.com/users/alextp/gists{/gist_id}","starred_url":"https://api.github.com/users/alextp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alextp/subscriptions","organizations_url":"https://api.github.com/users/alextp/orgs","repos_url":"https://api.github.com/users/alextp/repos","events_url":"https://api.github.com/users/alextp/events{/privacy}","received_events_url":"https://api.github.com/users/alextp/received_events","type":"User","site_admin":false},"assignees":[{"login":"alextp","id":5061,"node_id":"MDQ6VXNlcjUwNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/5061?v=4","gravatar_id":"","url":"https://api.github.com/users/alextp","html_url":"https://github.com/alextp","followers_url":"https://api.github.com/users/alextp/followers","following_url":"https://api.github.com/users/alextp/following{/other_user}","gists_url":"https://api.github.com/users/alextp/gists{/gist_id}","starred_url":"https://api.github.com/users/alextp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alextp/subscriptions","organizations_url":"https://api.github.com/users/alextp/orgs","repos_url":"https://api.github.com/users/alextp/repos","events_url":"https://api.github.com/users/alextp/events{/privacy}","received_events_url":"https://api.github.com/users/alextp/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-11-15T07:33:16Z","updated_at":"2018-11-26T18:44:06Z","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): example code for cnn network \r\n- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Windows with anaconda\r\n- TensorFlow installed from (source or binary):binary\r\n- TensorFlow version :1.12\r\n- Python version:3.7\r\n- Bazel version (if compiling from source):NA\r\n- GCC/Compiler version (if compiling from source):NA\r\n- CUDA/cuDNN version:9.0/7.5\r\n- GPU model and memory:rtx 2080 \r\n\r\n\r\n**Current behavior**\r\n\r\ntraining of model in eager execution mode and save checkpoint using tfe.saver.But it only saves the following files:\r\n-checkpoint\r\n-checkpoint.ckpt-00-data\r\n-checkpoint.ckpt-00-index\r\n\r\nThere is no .meta file being saved\r\n\r\nDue to this i am not able to restore my checkpoint file and create a graph from it or use it create a .npy file.\r\n\r\n\r\n**Describe the expected behavior**\r\n\r\nIt should have saved three .ckpt files namely:\r\n-checkpoint\r\n-checkpoint.ckpt-00.data\r\n-checkpoint.ckpt-00.index\r\n-checkpoint.ckpt-00.meta\r\n\r\n\r\n**Code to reproduce the issue**\r\nhttps://github.com/madalinabuzau/tensorflow-eager-tutorials/blob/master/07_convolutional_neural_networks_for_emotion_recognition.ipynb\r\nThis code is similar to my implementation\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/441751010","html_url":"https://github.com/tensorflow/tensorflow/issues/23763#issuecomment-441751010","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/23763","id":441751010,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTc1MTAxMA==","user":{"login":"allenlavoie","id":3731025,"node_id":"MDQ6VXNlcjM3MzEwMjU=","avatar_url":"https://avatars3.githubusercontent.com/u/3731025?v=4","gravatar_id":"","url":"https://api.github.com/users/allenlavoie","html_url":"https://github.com/allenlavoie","followers_url":"https://api.github.com/users/allenlavoie/followers","following_url":"https://api.github.com/users/allenlavoie/following{/other_user}","gists_url":"https://api.github.com/users/allenlavoie/gists{/gist_id}","starred_url":"https://api.github.com/users/allenlavoie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenlavoie/subscriptions","organizations_url":"https://api.github.com/users/allenlavoie/orgs","repos_url":"https://api.github.com/users/allenlavoie/repos","events_url":"https://api.github.com/users/allenlavoie/events{/privacy}","received_events_url":"https://api.github.com/users/allenlavoie/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T18:44:06Z","updated_at":"2018-11-26T18:44:06Z","author_association":"MEMBER","body":"There is a `self.predict` call in load which looks like it should call the layers. But it won't create slot variables in the optimizer, which might be the issue.\r\n\r\n@vishalghor can you use [`tf.keras.Model.save_weights(..., save_format='tf')`](https://www.tensorflow.org/api_docs/python/tf/keras/models/Model#save_weights) and `Model.load_weights` instead? Or `tf.train.Checkpoint` if you need more control. With those there's no need to create variables before loading them, they'll be restored on creation. `tfe.Saver` and `tf.train.Saver` are not going to be part of the 2.x API."}}
{"actor":{"display_login":"allenlavoie"}}