{"action":"opened","issue":{"url":"https://api.github.com/repos/ncullen93/torchsample/issues/33","repository_url":"https://api.github.com/repos/ncullen93/torchsample","labels_url":"https://api.github.com/repos/ncullen93/torchsample/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/ncullen93/torchsample/issues/33/comments","events_url":"https://api.github.com/repos/ncullen93/torchsample/issues/33/events","html_url":"https://github.com/ncullen93/torchsample/issues/33","id":233440779,"number":33,"title":"Error when using regularizers, but model does not have layer","user":{"login":"Mctigger","id":4086336,"avatar_url":"https://avatars2.githubusercontent.com/u/4086336?v=3","gravatar_id":"","url":"https://api.github.com/users/Mctigger","html_url":"https://github.com/Mctigger","followers_url":"https://api.github.com/users/Mctigger/followers","following_url":"https://api.github.com/users/Mctigger/following{/other_user}","gists_url":"https://api.github.com/users/Mctigger/gists{/gist_id}","starred_url":"https://api.github.com/users/Mctigger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mctigger/subscriptions","organizations_url":"https://api.github.com/users/Mctigger/orgs","repos_url":"https://api.github.com/users/Mctigger/repos","events_url":"https://api.github.com/users/Mctigger/events{/privacy}","received_events_url":"https://api.github.com/users/Mctigger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-04T15:35:57Z","updated_at":"2017-06-04T15:35:57Z","closed_at":null,"body":"I get the following error when my model does not have any convolutional layers, but sub-models do.\r\n\r\n> torchsample/modules/module_trainer.py\", line 595, in fit_loader\r\n    batch_logs['regularizer_loss'] = regularizer_loss.data[0]\r\n\r\nWhen I add \r\n`self.conv1 = nn.Conv2d(64, 32, kernel_size=3, stride=1, padding=1)`\r\n\r\nit works. (Though I do not use self.conv1 for calculations).\r\n\r\nAre regularizers for nested models even supported? :/"}}
{"actor":{"display_login":"Mctigger"}}