Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Allow AutoModule to have no bias #117

Open
yangky11 opened this issue May 3, 2016 · 0 comments
Open

Allow AutoModule to have no bias #117

yangky11 opened this issue May 3, 2016 · 0 comments

Comments

@yangky11
Copy link

yangky11 commented May 3, 2016

Hi all,

I'm wrapping my computation into a AutoModule and I do not need bias.
And I have to do something like loss = loss + 0 * torch.sum(bias) in my forward computation. Otherwise there will be an error when calling module:backward, since it assumes bias is available.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant