{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/20505","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/20505/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/20505/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/20505/events","html_url":"https://github.com/tensorflow/tensorflow/issues/20505","id":337804937,"node_id":"MDU6SXNzdWUzMzc4MDQ5Mzc=","number":20505,"title":"[feature request] allclose","user":{"login":"mrader1248","id":32457308,"node_id":"MDQ6VXNlcjMyNDU3MzA4","avatar_url":"https://avatars1.githubusercontent.com/u/32457308?v=4","gravatar_id":"","url":"https://api.github.com/users/mrader1248","html_url":"https://github.com/mrader1248","followers_url":"https://api.github.com/users/mrader1248/followers","following_url":"https://api.github.com/users/mrader1248/following{/other_user}","gists_url":"https://api.github.com/users/mrader1248/gists{/gist_id}","starred_url":"https://api.github.com/users/mrader1248/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrader1248/subscriptions","organizations_url":"https://api.github.com/users/mrader1248/orgs","repos_url":"https://api.github.com/users/mrader1248/repos","events_url":"https://api.github.com/users/mrader1248/events{/privacy}","received_events_url":"https://api.github.com/users/mrader1248/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"shivaniag","id":16565716,"node_id":"MDQ6VXNlcjE2NTY1NzE2","avatar_url":"https://avatars1.githubusercontent.com/u/16565716?v=4","gravatar_id":"","url":"https://api.github.com/users/shivaniag","html_url":"https://github.com/shivaniag","followers_url":"https://api.github.com/users/shivaniag/followers","following_url":"https://api.github.com/users/shivaniag/following{/other_user}","gists_url":"https://api.github.com/users/shivaniag/gists{/gist_id}","starred_url":"https://api.github.com/users/shivaniag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivaniag/subscriptions","organizations_url":"https://api.github.com/users/shivaniag/orgs","repos_url":"https://api.github.com/users/shivaniag/repos","events_url":"https://api.github.com/users/shivaniag/events{/privacy}","received_events_url":"https://api.github.com/users/shivaniag/received_events","type":"User","site_admin":false},"assignees":[{"login":"shivaniag","id":16565716,"node_id":"MDQ6VXNlcjE2NTY1NzE2","avatar_url":"https://avatars1.githubusercontent.com/u/16565716?v=4","gravatar_id":"","url":"https://api.github.com/users/shivaniag","html_url":"https://github.com/shivaniag","followers_url":"https://api.github.com/users/shivaniag/followers","following_url":"https://api.github.com/users/shivaniag/following{/other_user}","gists_url":"https://api.github.com/users/shivaniag/gists{/gist_id}","starred_url":"https://api.github.com/users/shivaniag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivaniag/subscriptions","organizations_url":"https://api.github.com/users/shivaniag/orgs","repos_url":"https://api.github.com/users/shivaniag/repos","events_url":"https://api.github.com/users/shivaniag/events{/privacy}","received_events_url":"https://api.github.com/users/shivaniag/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-07-03T08:58:01Z","updated_at":"2018-10-01T18:56:16Z","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)**: no\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Ubuntu 14.04\r\n- **TensorFlow installed from (source or binary)**: binary\r\n- **TensorFlow version (use command below)**: 1.4\r\n- **Python version**: 2.7\r\n- **Bazel version (if compiling from source)**: N/A\r\n- **GCC/Compiler version (if compiling from source)**: N/A\r\n- **CUDA/cuDNN version**: 8.0\r\n- **GPU model and memory**: GTX 1070\r\n- **Exact command to reproduce**: N/A\r\n\r\n### Describe the problem\r\nAs far as I can see, tensorflow does not have a function like `allclose` in numpy [1]. It's not something very tricky to implement, but it would be very convenient if it's already included in tensorflow. See the code below for a possible implementation. The default values for `rtol` and `atol` are chosen as they are for the numpy function.\r\n\r\n[1] https://docs.scipy.org/doc/numpy/reference/generated/numpy.allclose.html\r\n\r\n### Source code / logs\r\n```\r\ndef allclose(x, y, rtol=1e-5, atol=1e-8):\r\n    return tf.reduce_all(tf.abs(x - y) <= tf.abs(y) * rtol + atol)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/426022496","html_url":"https://github.com/tensorflow/tensorflow/issues/20505#issuecomment-426022496","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/20505","id":426022496,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjAyMjQ5Ng==","user":{"login":"tensorflowbutler","id":28546240,"node_id":"MDQ6VXNlcjI4NTQ2MjQw","avatar_url":"https://avatars2.githubusercontent.com/u/28546240?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflowbutler","html_url":"https://github.com/tensorflowbutler","followers_url":"https://api.github.com/users/tensorflowbutler/followers","following_url":"https://api.github.com/users/tensorflowbutler/following{/other_user}","gists_url":"https://api.github.com/users/tensorflowbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflowbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflowbutler/subscriptions","organizations_url":"https://api.github.com/users/tensorflowbutler/orgs","repos_url":"https://api.github.com/users/tensorflowbutler/repos","events_url":"https://api.github.com/users/tensorflowbutler/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflowbutler/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T18:56:16Z","updated_at":"2018-10-01T18:56:16Z","author_association":"MEMBER","body":"Nagging Assignee @shivaniag: It has been 90 days with no activity and this issue has an assignee. Please update the label and/or status accordingly."}}
{"actor":{"display_login":"tensorflowbutler"}}