{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9236","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9236/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9236/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9236/events","html_url":"https://github.com/tensorflow/tensorflow/pull/9236","id":221951572,"number":9236,"title":"add \"frames\" op to \"contrib/spectral\" (WIP)","user":{"login":"Androbin","id":16437156,"avatar_url":"https://avatars2.githubusercontent.com/u/16437156?v=3","gravatar_id":"","url":"https://api.github.com/users/Androbin","html_url":"https://github.com/Androbin","followers_url":"https://api.github.com/users/Androbin/followers","following_url":"https://api.github.com/users/Androbin/following{/other_user}","gists_url":"https://api.github.com/users/Androbin/gists{/gist_id}","starred_url":"https://api.github.com/users/Androbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Androbin/subscriptions","organizations_url":"https://api.github.com/users/Androbin/orgs","repos_url":"https://api.github.com/users/Androbin/repos","events_url":"https://api.github.com/users/Androbin/events{/privacy}","received_events_url":"https://api.github.com/users/Androbin/received_events","type":"User","site_admin":false},"labels":[{"id":522623856,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/API%20review","name":"API review","color":"d4c5f9","default":false},{"id":390482148,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review","name":"awaiting review","color":"fef2c0","default":false},{"id":300136587,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"ebrevdo","id":1794715,"avatar_url":"https://avatars3.githubusercontent.com/u/1794715?v=3","gravatar_id":"","url":"https://api.github.com/users/ebrevdo","html_url":"https://github.com/ebrevdo","followers_url":"https://api.github.com/users/ebrevdo/followers","following_url":"https://api.github.com/users/ebrevdo/following{/other_user}","gists_url":"https://api.github.com/users/ebrevdo/gists{/gist_id}","starred_url":"https://api.github.com/users/ebrevdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebrevdo/subscriptions","organizations_url":"https://api.github.com/users/ebrevdo/orgs","repos_url":"https://api.github.com/users/ebrevdo/repos","events_url":"https://api.github.com/users/ebrevdo/events{/privacy}","received_events_url":"https://api.github.com/users/ebrevdo/received_events","type":"User","site_admin":false},"assignees":[{"login":"ebrevdo","id":1794715,"avatar_url":"https://avatars3.githubusercontent.com/u/1794715?v=3","gravatar_id":"","url":"https://api.github.com/users/ebrevdo","html_url":"https://github.com/ebrevdo","followers_url":"https://api.github.com/users/ebrevdo/followers","following_url":"https://api.github.com/users/ebrevdo/following{/other_user}","gists_url":"https://api.github.com/users/ebrevdo/gists{/gist_id}","starred_url":"https://api.github.com/users/ebrevdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebrevdo/subscriptions","organizations_url":"https://api.github.com/users/ebrevdo/orgs","repos_url":"https://api.github.com/users/ebrevdo/repos","events_url":"https://api.github.com/users/ebrevdo/events{/privacy}","received_events_url":"https://api.github.com/users/ebrevdo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-04-15T14:28:57Z","updated_at":"2017-04-17T23:42:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/9236","html_url":"https://github.com/tensorflow/tensorflow/pull/9236","diff_url":"https://github.com/tensorflow/tensorflow/pull/9236.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/9236.patch"},"body":"Added op to frame a signal into overlapping frames.\r\nInspired by [`python_speech_features.sigproc.framesig`](https://github.com/jameslyons/python_speech_features/blob/master/python_speech_features/sigproc.py#L13)\r\n\r\nMay be used in front of [spectral functions](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/docs_src/api_guides/python/spectral_ops.md).\r\n\r\n```\r\npcm = tf.placeholder(tf.float32, [None, 9152])\r\nframes = tf.contrib.spectral.frames(pcm, 512, 180)\r\nmagspec = tf.abs(tf.spectral.rfft(frames, [512]))\r\nimage = tf.expand_dims(magspec, 3)\r\n```"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/294628114","html_url":"https://github.com/tensorflow/tensorflow/pull/9236#issuecomment-294628114","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9236","id":294628114,"user":{"login":"ebrevdo","id":1794715,"avatar_url":"https://avatars3.githubusercontent.com/u/1794715?v=3","gravatar_id":"","url":"https://api.github.com/users/ebrevdo","html_url":"https://github.com/ebrevdo","followers_url":"https://api.github.com/users/ebrevdo/followers","following_url":"https://api.github.com/users/ebrevdo/following{/other_user}","gists_url":"https://api.github.com/users/ebrevdo/gists{/gist_id}","starred_url":"https://api.github.com/users/ebrevdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebrevdo/subscriptions","organizations_url":"https://api.github.com/users/ebrevdo/orgs","repos_url":"https://api.github.com/users/ebrevdo/repos","events_url":"https://api.github.com/users/ebrevdo/events{/privacy}","received_events_url":"https://api.github.com/users/ebrevdo/received_events","type":"User","site_admin":false},"created_at":"2017-04-17T23:42:54Z","updated_at":"2017-04-17T23:42:54Z","body":"yeah try to avoid a transpose if you can. they're not free.\n\nOn Apr 17, 2017 2:31 PM, \"Androbin\" <notifications@github.com> wrote:\n\n> Which of the two would be faster or more readable or whatsoever?\n>\n> This is how it's done in python_speech_features.sigproc.framesig:\n> indices_steps = array_ops.transpose(array_ops.tile(array_ops.expand_dims(math_ops.range(0,\n> num_frames * frame_step, frame_step), 0), [frame_length, 1]))\n>\n> But I figured out that, because expand_dims is already inserted\n> explicitly:\n> indices_steps = array_ops.tile(array_ops.expand_dims(math_ops.range(0,\n> num_frames * frame_step, frame_step), 1), [1, frame_length])\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/pull/9236#issuecomment-294599205>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABtim5PhSyrOSWunqH4xuQst359kPRZEks5rw9oUgaJpZM4M-XOE>\n> .\n>\n"}}
{"actor":{"display_login":"ebrevdo"}}