{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/CNTK/issues/3188","repository_url":"https://api.github.com/repos/Microsoft/CNTK","labels_url":"https://api.github.com/repos/Microsoft/CNTK/issues/3188/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/CNTK/issues/3188/comments","events_url":"https://api.github.com/repos/Microsoft/CNTK/issues/3188/events","html_url":"https://github.com/Microsoft/CNTK/issues/3188","id":320652514,"number":3188,"title":"module 'cntk' has no attribute 'learning_parameter_per_sample'","user":{"login":"Chinese-Xu","id":2484031,"avatar_url":"https://avatars0.githubusercontent.com/u/2484031?v=4","gravatar_id":"","url":"https://api.github.com/users/Chinese-Xu","html_url":"https://github.com/Chinese-Xu","followers_url":"https://api.github.com/users/Chinese-Xu/followers","following_url":"https://api.github.com/users/Chinese-Xu/following{/other_user}","gists_url":"https://api.github.com/users/Chinese-Xu/gists{/gist_id}","starred_url":"https://api.github.com/users/Chinese-Xu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chinese-Xu/subscriptions","organizations_url":"https://api.github.com/users/Chinese-Xu/orgs","repos_url":"https://api.github.com/users/Chinese-Xu/repos","events_url":"https://api.github.com/users/Chinese-Xu/events{/privacy}","received_events_url":"https://api.github.com/users/Chinese-Xu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-07T02:05:07Z","updated_at":"2018-05-07T02:05:07Z","closed_at":null,"author_association":"NONE","body":"**Env**\r\n\r\nWin10 / Py3.6 / cntk2.5.1 cpu-only / VSCode\r\n\r\n**Case**\r\n\r\nRun 1stSteps/MNIST_Complex_Training.py\r\n\r\n**Error message**\r\n\r\nAttributeError: module 'cntk' has no attribute 'learning_parameter_per_sample'\r\n\r\n**Detail**\r\n\r\nFinished Epoch[10]: loss = 0.035307 * 54000, metric = 1.08% * 54000 40.146s (1345.1 samples/s);\r\nFinished Epoch[11]: loss = 0.033584 * 54000, metric = 1.01% * 54000 36.936s (1462.0 samples/s);\r\nFinished Epoch[12]: loss = 0.030132 * 54000, metric = 0.96% * 54000 35.926s (1503.1 samples/s);\r\nFinished Evaluation [4]: Minibatch[1-24]: metric = 0.88% * 6000;\r\nFinished Epoch[13]: loss = 0.027583 * 54000, metric = 0.85% * 54000 40.129s (1345.7 samples/s);\r\nFinished Epoch[14]: loss = 0.026562 * 54000, metric = 0.81% * 54000 43.097s (1253.0 samples/s);\r\nFinished Epoch[15]: loss = 0.024385 * 54000, metric = 0.76% * 54000 42.182s (1280.2 samples/s);\r\nFinished Evaluation [5]: Minibatch[1-24]: metric = 0.90% * 6000;\r\nTraceback (most recent call last):\r\n  File \"C:\\Python36\\lib\\site-packages\\cntk\\train\\training_session.py\", line 349, in on_cross_validation_end\r\n    return self.cv_callback(index, average_error, num_samples, num_minibatches)\r\n  File \"c:/cntk/CNTK-Samples-2-5-1/Examples/1stSteps/MNIST_Complex_Training.py\", line 117, in adjust_lr_callback\r\n    learner.reset_learning_rate(C.learning_parameter_per_sample(learner.learning_rate() / 2))\r\nAttributeError: module 'cntk' has no attribute 'learning_parameter_per_sample'\r\nTraceback (most recent call last):\r\n  File \"c:/cntk/CNTK-Samples-2-5-1/Examples/1stSteps/MNIST_Complex_Training.py\", line 150, in <module>\r\n    callbacks=[progress_writer, checkpoint_callback_config, cv_callback_config, test_callback_config])\r\n  File \"C:\\Python36\\lib\\site-packages\\cntk\\ops\\functions.py\", line 1461, in train\r\n    ts.train()\r\n  File \"C:\\Python36\\lib\\site-packages\\cntk\\internal\\swig_helper.py\", line 69, in wrapper\r\n    result = f(*args, **kwds)\r\n  File \"C:\\Python36\\lib\\site-packages\\cntk\\train\\training_session.py\", line 333, in train\r\n    super(TrainingSession, self).train(device)\r\n  File \"C:\\Python36\\lib\\site-packages\\cntk\\cntk_py.py\", line 3546, in train\r\n    return _cntk_py.TrainingSession_train(self, computeDevice)\r\nRuntimeError: SWIG director method error."}}
{"actor":{"display_login":"Chinese-Xu"}}