{"action":"created","issue":{"url":"https://api.github.com/repos/n-waves/ulmfit-multilingual/issues/23","repository_url":"https://api.github.com/repos/n-waves/ulmfit-multilingual","labels_url":"https://api.github.com/repos/n-waves/ulmfit-multilingual/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/n-waves/ulmfit-multilingual/issues/23/comments","events_url":"https://api.github.com/repos/n-waves/ulmfit-multilingual/issues/23/events","html_url":"https://github.com/n-waves/ulmfit-multilingual/issues/23","id":390956993,"node_id":"MDU6SXNzdWUzOTA5NTY5OTM=","number":23,"title":"Expected input batch_size to match target batch_size error occurs while bidir=True","user":{"login":"alexwwang","id":856746,"node_id":"MDQ6VXNlcjg1Njc0Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/856746?v=4","gravatar_id":"","url":"https://api.github.com/users/alexwwang","html_url":"https://github.com/alexwwang","followers_url":"https://api.github.com/users/alexwwang/followers","following_url":"https://api.github.com/users/alexwwang/following{/other_user}","gists_url":"https://api.github.com/users/alexwwang/gists{/gist_id}","starred_url":"https://api.github.com/users/alexwwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexwwang/subscriptions","organizations_url":"https://api.github.com/users/alexwwang/orgs","repos_url":"https://api.github.com/users/alexwwang/repos","events_url":"https://api.github.com/users/alexwwang/events{/privacy}","received_events_url":"https://api.github.com/users/alexwwang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-14T04:02:05Z","updated_at":"2018-12-31T11:59:57Z","closed_at":"2018-12-31T11:59:57Z","author_association":"NONE","body":"I am trying to use cpu to train an `lstm` ulmfit lm with `bidir=true` and the error occurs while the first round in  `fit_one_cycle`.\r\n\r\nConcretely, the error happened at `torch.nn.functional.py#Ln1788` in `nll_loss.format(input.size(0), target.size(0)))`. \r\n\r\nThe above level shows the program is trying to compute `cross_entropy` in `nn.modules.loss.forward`.\r\n\r\nI'm using pytorch-nightly-cpu with fastai installed by conda.\r\n\r\nAnyone could provide any hint on how to dig in? Thanks."},"comment":{"url":"https://api.github.com/repos/n-waves/ulmfit-multilingual/issues/comments/450637952","html_url":"https://github.com/n-waves/ulmfit-multilingual/issues/23#issuecomment-450637952","issue_url":"https://api.github.com/repos/n-waves/ulmfit-multilingual/issues/23","id":450637952,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDYzNzk1Mg==","user":{"login":"PiotrCzapla","id":340180,"node_id":"MDQ6VXNlcjM0MDE4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/340180?v=4","gravatar_id":"","url":"https://api.github.com/users/PiotrCzapla","html_url":"https://github.com/PiotrCzapla","followers_url":"https://api.github.com/users/PiotrCzapla/followers","following_url":"https://api.github.com/users/PiotrCzapla/following{/other_user}","gists_url":"https://api.github.com/users/PiotrCzapla/gists{/gist_id}","starred_url":"https://api.github.com/users/PiotrCzapla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiotrCzapla/subscriptions","organizations_url":"https://api.github.com/users/PiotrCzapla/orgs","repos_url":"https://api.github.com/users/PiotrCzapla/repos","events_url":"https://api.github.com/users/PiotrCzapla/events{/privacy}","received_events_url":"https://api.github.com/users/PiotrCzapla/received_events","type":"User","site_admin":false},"created_at":"2018-12-31T11:59:57Z","updated_at":"2018-12-31T11:59:57Z","author_association":"MEMBER","body":"reopen if you see the error again."}}
{"actor":{"display_login":"PiotrCzapla"}}