{"action":"created","issue":{"url":"https://api.github.com/repos/CyberZHG/keras-self-attention/issues/3","repository_url":"https://api.github.com/repos/CyberZHG/keras-self-attention","labels_url":"https://api.github.com/repos/CyberZHG/keras-self-attention/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/CyberZHG/keras-self-attention/issues/3/comments","events_url":"https://api.github.com/repos/CyberZHG/keras-self-attention/issues/3/events","html_url":"https://github.com/CyberZHG/keras-self-attention/issues/3","id":373483175,"node_id":"MDU6SXNzdWUzNzM0ODMxNzU=","number":3,"title":"SeqSelfAttention returning tuple (tensor, weights) raise TypeError on Tensor object not iterable","user":{"login":"McKracken","id":7049505,"node_id":"MDQ6VXNlcjcwNDk1MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/7049505?v=4","gravatar_id":"","url":"https://api.github.com/users/McKracken","html_url":"https://github.com/McKracken","followers_url":"https://api.github.com/users/McKracken/followers","following_url":"https://api.github.com/users/McKracken/following{/other_user}","gists_url":"https://api.github.com/users/McKracken/gists{/gist_id}","starred_url":"https://api.github.com/users/McKracken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McKracken/subscriptions","organizations_url":"https://api.github.com/users/McKracken/orgs","repos_url":"https://api.github.com/users/McKracken/repos","events_url":"https://api.github.com/users/McKracken/events{/privacy}","received_events_url":"https://api.github.com/users/McKracken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-24T13:28:22Z","updated_at":"2018-10-26T14:46:03Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm running the code Regularizer example from your README, and I getting the following error from SeqSelAttention layer\r\n\r\n`TypeError: Tensor objects are not iterable when eager execution is not enabled. To iterate over this tensor use tf.map_fn. `\r\n\r\nraised in \"lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 436, in __iter__\r\n\r\nI'm using:\r\n- python 3.6.5 \r\n- tensorflow 1.9.0\r\n\r\nAny clue?"},"comment":{"url":"https://api.github.com/repos/CyberZHG/keras-self-attention/issues/comments/433432909","html_url":"https://github.com/CyberZHG/keras-self-attention/issues/3#issuecomment-433432909","issue_url":"https://api.github.com/repos/CyberZHG/keras-self-attention/issues/3","id":433432909,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzQzMjkwOQ==","user":{"login":"McKracken","id":7049505,"node_id":"MDQ6VXNlcjcwNDk1MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/7049505?v=4","gravatar_id":"","url":"https://api.github.com/users/McKracken","html_url":"https://github.com/McKracken","followers_url":"https://api.github.com/users/McKracken/followers","following_url":"https://api.github.com/users/McKracken/following{/other_user}","gists_url":"https://api.github.com/users/McKracken/gists{/gist_id}","starred_url":"https://api.github.com/users/McKracken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McKracken/subscriptions","organizations_url":"https://api.github.com/users/McKracken/orgs","repos_url":"https://api.github.com/users/McKracken/repos","events_url":"https://api.github.com/users/McKracken/events{/privacy}","received_events_url":"https://api.github.com/users/McKracken/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T14:46:03Z","updated_at":"2018-10-26T14:46:03Z","author_association":"NONE","body":"Right, I see, thank you. \r\nWhen you use the `attention_width` parameter, does it related to the width in terms of previous and following inputs consider for the actual token. That meaning, that if we're evaluating the attention for the input x_t with an attention_width of 3, the inputs x_t-3, x_t-2, x_t-1 and x_t+3, x_t+2, x_t+1 will be considered in the evaluation?"}}
{"actor":{"display_login":"McKracken"}}