{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/2392","repository_url":"https://api.github.com/repos/dmlc/mxnet","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/2392/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/2392/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/2392/events","html_url":"https://github.com/dmlc/mxnet/issues/2392","id":159737759,"number":2392,"title":"Error in predict: object 'mx.ctx.internal.default.value' not found","user":{"login":"bdlacree","id":13616189,"avatar_url":"https://avatars.githubusercontent.com/u/13616189?v=3","gravatar_id":"","url":"https://api.github.com/users/bdlacree","html_url":"https://github.com/bdlacree","followers_url":"https://api.github.com/users/bdlacree/followers","following_url":"https://api.github.com/users/bdlacree/following{/other_user}","gists_url":"https://api.github.com/users/bdlacree/gists{/gist_id}","starred_url":"https://api.github.com/users/bdlacree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdlacree/subscriptions","organizations_url":"https://api.github.com/users/bdlacree/orgs","repos_url":"https://api.github.com/users/bdlacree/repos","events_url":"https://api.github.com/users/bdlacree/events{/privacy}","received_events_url":"https://api.github.com/users/bdlacree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-10T22:49:35Z","updated_at":"2016-06-11T17:17:02Z","closed_at":null,"body":"When I use the predict() function in R, I get the following error:\r\n\r\n```\r\nError in mx.ctx.default() : \r\n  object 'mx.ctx.internal.default.value' not found\r\n```\r\n\r\nThis happens irregularly, and when it does, the only solution is to restart my computer and try again. I've seen the error mentioned before but haven't seen any solutions. Has there been any progress on this?\r\n\r\nThanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/225375701","html_url":"https://github.com/dmlc/mxnet/issues/2392#issuecomment-225375701","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/2392","id":225375701,"user":{"login":"bdlacree","id":13616189,"avatar_url":"https://avatars.githubusercontent.com/u/13616189?v=3","gravatar_id":"","url":"https://api.github.com/users/bdlacree","html_url":"https://github.com/bdlacree","followers_url":"https://api.github.com/users/bdlacree/followers","following_url":"https://api.github.com/users/bdlacree/following{/other_user}","gists_url":"https://api.github.com/users/bdlacree/gists{/gist_id}","starred_url":"https://api.github.com/users/bdlacree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdlacree/subscriptions","organizations_url":"https://api.github.com/users/bdlacree/orgs","repos_url":"https://api.github.com/users/bdlacree/repos","events_url":"https://api.github.com/users/bdlacree/events{/privacy}","received_events_url":"https://api.github.com/users/bdlacree/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T17:17:02Z","updated_at":"2016-06-11T17:17:02Z","body":"For what it's worth, the way that I can get the predict() to work temporarily is to (re?)create the mx.ctx.internal.default.value object thus:\r\n\r\n```\r\n> mx.ctx.internal.default.value = list(device=\"cpu\",device_id=0,device_typeid=1)\r\n> mx.ctx.internal.default.value\r\n$device\r\n[1] \"cpu\"\r\n\r\n$device_id\r\n[1] 0\r\n\r\n$device_typeid\r\n[1] 1\r\n\r\n> class(mx.ctx.internal.default.value) = \"MXContext\"\r\n\r\n# now predict works...\r\n> preds = predict(model,t(X))\r\n```"}}
{"actor":{"display_login":"bdlacree"}}