{"action":"created","issue":{"url":"https://api.github.com/repos/Conchylicultor/DeepQA/issues/67","repository_url":"https://api.github.com/repos/Conchylicultor/DeepQA","labels_url":"https://api.github.com/repos/Conchylicultor/DeepQA/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/Conchylicultor/DeepQA/issues/67/comments","events_url":"https://api.github.com/repos/Conchylicultor/DeepQA/issues/67/events","html_url":"https://github.com/Conchylicultor/DeepQA/issues/67","id":209864415,"number":67,"title":"Softmaxsamples broken with move to 1.0","user":{"login":"eschnou","id":185660,"avatar_url":"https://avatars1.githubusercontent.com/u/185660?v=3","gravatar_id":"","url":"https://api.github.com/users/eschnou","html_url":"https://github.com/eschnou","followers_url":"https://api.github.com/users/eschnou/followers","following_url":"https://api.github.com/users/eschnou/following{/other_user}","gists_url":"https://api.github.com/users/eschnou/gists{/gist_id}","starred_url":"https://api.github.com/users/eschnou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschnou/subscriptions","organizations_url":"https://api.github.com/users/eschnou/orgs","repos_url":"https://api.github.com/users/eschnou/repos","events_url":"https://api.github.com/users/eschnou/events{/privacy}","received_events_url":"https://api.github.com/users/eschnou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-23T19:48:00Z","updated_at":"2017-03-01T08:42:36Z","closed_at":null,"body":"Using --softmaxSamples leads to the error below. I haven't investigated yet on root cause, but a lot of APIs have changed in 1.0.\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/common_shapes.py\", line 670, in _call_cpp_shape_fn_impl\r\n    status)\r\n  File \"/usr/lib/python3.4/contextlib.py\", line 66, in __exit__\r\n    next(self.gen)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/errors_impl.py\", line 469, in raise_exception_on_not_ok_status\r\n    pywrap_tensorflow.TF_GetCode(status))\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: Shape must be rank 2 but is rank 1 for 'sequence_loss/sequence_loss_by_example/sampled_softmax_loss/LogUniformCandidateSampler' (op: 'LogUniformCandidateSampler') with input shapes: [?].\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"main.py\", line 29, in <module>\r\n    chatbot.main()\r\n  File \"/home/eschenal/Workspace/personal/DeepQA/chatbot/chatbot.py\", line 166, in main\r\n    self.model = Model(self.args, self.textData)\r\n  File \"/home/eschenal/Workspace/personal/DeepQA/chatbot/model.py\", line 103, in __init__\r\n    self.buildNetwork()\r\n  File \"/home/eschenal/Workspace/personal/DeepQA/chatbot/model.py\", line 191, in buildNetwork\r\n    softmax_loss_function= sampledSoftmax if outputProjection else None  # If None, use default SoftMax\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py\", line 1110, in sequence_loss\r\n    softmax_loss_function=softmax_loss_function))\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py\", line 1067, in sequence_loss_by_example\r\n    crossent = softmax_loss_function(target, logit)\r\n  File \"/home/eschenal/Workspace/personal/DeepQA/chatbot/model.py\", line 138, in sampledSoftmax\r\n    self.textData.getVocabularySize()),  # The number of classes\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/nn_impl.py\", line 1191, in sampled_softmax_loss\r\n    name=name)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/nn_impl.py\", line 947, in _compute_sampled_logits\r\n    range_max=num_classes)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/candidate_sampling_ops.py\", line 134, in log_uniform_candidate_sampler\r\n    seed2=seed2, name=name)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/gen_candidate_sampling_ops.py\", line 357, in _log_uniform_candidate_sampler\r\n    name=name)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/op_def_library.py\", line 763, in apply_op\r\n    op_def=op_def)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/ops.py\", line 2397, in create_op\r\n    set_shapes_for_outputs(ret)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/ops.py\", line 1757, in set_shapes_for_outputs\r\n    shapes = shape_func(op)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/ops.py\", line 1707, in call_with_requiring\r\n    return call_cpp_shape_fn(op, require_shape_fn=True)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/common_shapes.py\", line 610, in call_cpp_shape_fn\r\n    debug_python_shape_fn, require_shape_fn)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/common_shapes.py\", line 675, in _call_cpp_shape_fn_impl\r\n    raise ValueError(err.message)\r\nValueError: Shape must be rank 2 but is rank 1 for 'sequence_loss/sequence_loss_by_example/sampled_softmax_loss/LogUniformCandidateSampler' (op: 'LogUniformCandidateSampler') with input shapes: [?].\r\n"},"comment":{"url":"https://api.github.com/repos/Conchylicultor/DeepQA/issues/comments/283279164","html_url":"https://github.com/Conchylicultor/DeepQA/issues/67#issuecomment-283279164","issue_url":"https://api.github.com/repos/Conchylicultor/DeepQA/issues/67","id":283279164,"user":{"login":"alanbekker","id":5227337,"avatar_url":"https://avatars3.githubusercontent.com/u/5227337?v=3","gravatar_id":"","url":"https://api.github.com/users/alanbekker","html_url":"https://github.com/alanbekker","followers_url":"https://api.github.com/users/alanbekker/followers","following_url":"https://api.github.com/users/alanbekker/following{/other_user}","gists_url":"https://api.github.com/users/alanbekker/gists{/gist_id}","starred_url":"https://api.github.com/users/alanbekker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanbekker/subscriptions","organizations_url":"https://api.github.com/users/alanbekker/orgs","repos_url":"https://api.github.com/users/alanbekker/repos","events_url":"https://api.github.com/users/alanbekker/events{/privacy}","received_events_url":"https://api.github.com/users/alanbekker/received_events","type":"User","site_admin":false},"created_at":"2017-03-01T08:42:36Z","updated_at":"2017-03-01T08:42:36Z","body":"Can you provide some tips to how fix it?"}}
{"actor":{"display_login":"alanbekker"}}