{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18690","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18690/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18690/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18690/events","html_url":"https://github.com/tensorflow/tensorflow/issues/18690","id":315854613,"number":18690,"title":"problems with word2vec_basic.py","user":{"login":"Johnzdh","id":26063660,"avatar_url":"https://avatars2.githubusercontent.com/u/26063660?v=4","gravatar_id":"","url":"https://api.github.com/users/Johnzdh","html_url":"https://github.com/Johnzdh","followers_url":"https://api.github.com/users/Johnzdh/followers","following_url":"https://api.github.com/users/Johnzdh/following{/other_user}","gists_url":"https://api.github.com/users/Johnzdh/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnzdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnzdh/subscriptions","organizations_url":"https://api.github.com/users/Johnzdh/orgs","repos_url":"https://api.github.com/users/Johnzdh/repos","events_url":"https://api.github.com/users/Johnzdh/events{/privacy}","received_events_url":"https://api.github.com/users/Johnzdh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-19T12:26:38Z","updated_at":"2018-04-19T12:32:26Z","closed_at":"2018-04-19T12:31:34Z","author_association":"NONE","body":"### System information\r\n- **OS Platform and Distribution: Linux Ubuntu 16.04\r\n- **TensorFlow version (use command below)**: 1.6\r\n- **Python version**: 3.5\r\n\r\n\r\n\r\n### the problem\r\nhappened in the 'loss' function\r\nDid anyone else meet this problem?\r\n \r\n### Source code / logs\r\n  loss = tf.reduce_mean(\r\n      tf.nn.nce_loss(nce_weights, nce_biases, embed, train_labels,\r\n                     num_sampled, vocabulary_size))\r\n\r\n\r\nTypeError: Input 'b' of 'MatMul' Op has type float32 that does not match type int32 of argument 'a'.\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/382716332","html_url":"https://github.com/tensorflow/tensorflow/issues/18690#issuecomment-382716332","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18690","id":382716332,"user":{"login":"Johnzdh","id":26063660,"avatar_url":"https://avatars2.githubusercontent.com/u/26063660?v=4","gravatar_id":"","url":"https://api.github.com/users/Johnzdh","html_url":"https://github.com/Johnzdh","followers_url":"https://api.github.com/users/Johnzdh/followers","following_url":"https://api.github.com/users/Johnzdh/following{/other_user}","gists_url":"https://api.github.com/users/Johnzdh/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnzdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnzdh/subscriptions","organizations_url":"https://api.github.com/users/Johnzdh/orgs","repos_url":"https://api.github.com/users/Johnzdh/repos","events_url":"https://api.github.com/users/Johnzdh/events{/privacy}","received_events_url":"https://api.github.com/users/Johnzdh/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T12:32:26Z","updated_at":"2018-04-19T12:32:26Z","author_association":"NONE","body":"It seems something wrong with the order of parameters.\r\nModify it like that:\r\nloss = tf.reduce_mean(tf.nn.nce_loss(weights=nce_weights,\r\n                                       biases=nce_biases,\r\n                                       inputs=embed,\r\n                                       labels=train_labels,\r\n                                       num_sampled=num_sampled,\r\n                                       num_classes=vocabulary_size))\r\n"}}
{"actor":{"display_login":"Johnzdh"}}