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

🐛 test(nn): fix test_blocks() with updated functions/classes #14

Merged
merged 3 commits into from
May 2, 2021

Conversation

Horgix
Copy link
Collaborator

@Horgix Horgix commented May 1, 2021

test_blocks() was failing because:

  • remove_bn() was renamed by 09640a4 into remove_batchnorm()
  • SNResidualDiscrBlock was removed by bcb91b5 - I used ResidualDiscrBlock instead but I'm not sure that's the right thing to do
  • Capitalization was wrong on MConvBNReLU - guess it was also changed in a previous commit

This PR makes it pass again 🙂

@Vermeille
Copy link
Owner

So cool!

You did the right thing renaming SNResidualDiscrBlock to ResidualDiscrBlock since the former is now equivalent to ResidualDiscrBlock().to_spectral_norm()

MConvBNReLU must absolutely get eradicated though. It doesn't do anything wrong really, but doesn't fit in the new design & philosophy or Torchelie. If anything, we should construct the PixelCNN with simple ConvBlocks then use torchelie.nn.utils.edit_model to transform all convs into masked convs.

@Horgix
Copy link
Collaborator Author

Horgix commented May 2, 2021

You did the right thing renaming SNResidualDiscrBlock to ResidualDiscrBlock since the former is now equivalent to ResidualDiscrBlock().to_spectral_norm()

Cool 🙂

MConvBNReLU must absolutely get eradicated though. It doesn't do anything wrong really, but doesn't fit in the new design & philosophy or Torchelie. If anything, we should construct the PixelCNN with simple ConvBlocks then use torchelie.nn.utils.edit_model to transform all convs into masked convs.

Opened #21 about it!

@Horgix Horgix added the bug Something isn't working label May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants