{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/tfjs/issues/311","repository_url":"https://api.github.com/repos/tensorflow/tfjs","labels_url":"https://api.github.com/repos/tensorflow/tfjs/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tfjs/issues/311/comments","events_url":"https://api.github.com/repos/tensorflow/tfjs/issues/311/events","html_url":"https://github.com/tensorflow/tfjs/issues/311","id":324647269,"number":311,"title":"tf.ClipByValue() does not work as expected for the parameters 0, 1","user":{"login":"Melvin-Abraham","id":26056183,"avatar_url":"https://avatars1.githubusercontent.com/u/26056183?v=4","gravatar_id":"","url":"https://api.github.com/users/Melvin-Abraham","html_url":"https://github.com/Melvin-Abraham","followers_url":"https://api.github.com/users/Melvin-Abraham/followers","following_url":"https://api.github.com/users/Melvin-Abraham/following{/other_user}","gists_url":"https://api.github.com/users/Melvin-Abraham/gists{/gist_id}","starred_url":"https://api.github.com/users/Melvin-Abraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Melvin-Abraham/subscriptions","organizations_url":"https://api.github.com/users/Melvin-Abraham/orgs","repos_url":"https://api.github.com/users/Melvin-Abraham/repos","events_url":"https://api.github.com/users/Melvin-Abraham/events{/privacy}","received_events_url":"https://api.github.com/users/Melvin-Abraham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-19T17:45:20Z","updated_at":"2018-05-19T17:45:20Z","closed_at":null,"author_association":"NONE","body":"#### TensorFlow.js version: 0.10.0\r\n\r\n#### Google Chrome version: 66.0.3359.181\r\n\r\nThe `tf.ClipByValue()` function fails to clip the values in a tensor when `clipValueMin` is set to 0 and `clipValueMax` is set to 1.\r\n\r\n```javascript\r\nlet tensor = tf.range(0, 10)\r\n// [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\r\n\r\nlet t_clip = tensor.clipByValue(0, 1)\r\n\r\nt_clip.print()\r\n// [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\r\n// Spits out the same tensor without clipping the values\r\n```"}}
{"actor":{"display_login":"Melvin-Abraham"}}