{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/12659","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/12659/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/12659/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/12659/events","html_url":"https://github.com/tensorflow/tensorflow/issues/12659","id":253452842,"number":12659,"title":"tf.maximum does not return nan when inputs contain nan","user":{"login":"meijun","id":22214696,"avatar_url":"https://avatars0.githubusercontent.com/u/22214696?v=4","gravatar_id":"","url":"https://api.github.com/users/meijun","html_url":"https://github.com/meijun","followers_url":"https://api.github.com/users/meijun/followers","following_url":"https://api.github.com/users/meijun/following{/other_user}","gists_url":"https://api.github.com/users/meijun/gists{/gist_id}","starred_url":"https://api.github.com/users/meijun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meijun/subscriptions","organizations_url":"https://api.github.com/users/meijun/orgs","repos_url":"https://api.github.com/users/meijun/repos","events_url":"https://api.github.com/users/meijun/events{/privacy}","received_events_url":"https://api.github.com/users/meijun/received_events","type":"User","site_admin":false},"labels":[{"id":473172988,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug/performance","name":"type:bug/performance","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"benoitsteiner","id":6969686,"avatar_url":"https://avatars0.githubusercontent.com/u/6969686?v=4","gravatar_id":"","url":"https://api.github.com/users/benoitsteiner","html_url":"https://github.com/benoitsteiner","followers_url":"https://api.github.com/users/benoitsteiner/followers","following_url":"https://api.github.com/users/benoitsteiner/following{/other_user}","gists_url":"https://api.github.com/users/benoitsteiner/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitsteiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitsteiner/subscriptions","organizations_url":"https://api.github.com/users/benoitsteiner/orgs","repos_url":"https://api.github.com/users/benoitsteiner/repos","events_url":"https://api.github.com/users/benoitsteiner/events{/privacy}","received_events_url":"https://api.github.com/users/benoitsteiner/received_events","type":"User","site_admin":false},"assignees":[{"login":"benoitsteiner","id":6969686,"avatar_url":"https://avatars0.githubusercontent.com/u/6969686?v=4","gravatar_id":"","url":"https://api.github.com/users/benoitsteiner","html_url":"https://github.com/benoitsteiner","followers_url":"https://api.github.com/users/benoitsteiner/followers","following_url":"https://api.github.com/users/benoitsteiner/following{/other_user}","gists_url":"https://api.github.com/users/benoitsteiner/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitsteiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitsteiner/subscriptions","organizations_url":"https://api.github.com/users/benoitsteiner/orgs","repos_url":"https://api.github.com/users/benoitsteiner/repos","events_url":"https://api.github.com/users/benoitsteiner/events{/privacy}","received_events_url":"https://api.github.com/users/benoitsteiner/received_events","type":"User","site_admin":false}],"milestone":null,"comments":21,"created_at":"2017-08-28T20:51:57Z","updated_at":"2018-05-10T01:14:02Z","closed_at":null,"author_association":"CONTRIBUTOR","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)**: Linux CentOS 7\r\n- **TensorFlow installed from (source or binary)**: binary\r\n- **TensorFlow version (use command below)**: 1.3.0\r\n- **Python version**: 2.7.13\r\n- **Bazel version (if compiling from source)**:\r\n- **CUDA/cuDNN version**: 8.0/6.0\r\n- **GPU model and memory**: Tesla K40m, 11439MiB\r\n- **Exact command to reproduce**: python main.py\r\n\r\n### Describe the problem\r\n`tf.maximum(a, b)` should return `nan` when `a` or `b` contain `nan`. However, it does not at some cases.\r\n\r\n### Source code / logs\r\nmain.py\r\n```python\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\na = tf.placeholder(dtype=tf.float32)\r\nmax_a = tf.maximum(a, 1.)\r\nwith tf.Session():\r\n    print max_a.eval(feed_dict={a: np.nan})\r\n```\r\nThe output is:\r\n```\r\n1.0\r\n```"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/387920929","html_url":"https://github.com/tensorflow/tensorflow/issues/12659#issuecomment-387920929","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/12659","id":387920929,"user":{"login":"tensorflowbutler","id":28546240,"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-05-10T01:14:02Z","updated_at":"2018-05-10T01:14:02Z","author_association":"MEMBER","body":"Nagging Assignee @benoitsteiner: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly."}}
{"actor":{"display_login":"tensorflowbutler"}}