Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should it be 'return self.dec_blocks(x)'? #11

Open
ZumbiAzul opened this issue Sep 13, 2020 · 0 comments
Open

Should it be 'return self.dec_blocks(x)'? #11

ZumbiAzul opened this issue Sep 13, 2020 · 0 comments

Comments

@ZumbiAzul
Copy link

Should it be 'return self.dec_blocks(x)'?
There are two places with this code-line.

class MyDecoder(nn.Module):
    def __init__(self, dec_sizes, n_classes):
        super().__init__()
        self.dec_blocks = nn.Sequential(*[dec_block(in_f, out_f) 
                       for in_f, out_f in zip(dec_sizes, dec_sizes[1:])])
        self.last = nn.Linear(dec_sizes[-1], n_classes)

    def forward(self, x):
        return self.dec_blocks() # Here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant