-
Notifications
You must be signed in to change notification settings - Fork 13
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
Not Removing Comments in code Version: 1.66.0 - in .py files #25
Comments
It looks like this is no longer maintained and it can only handle 1 type of line and block comment. There is an alternative extensions that removes comments and it should work for |
Thanks for the suggestion, and I installed that one, however, even that one seems not to work as expected. e.g. I have the following python code in .py file. And I just could not delete the multi-line comments using that extension. def weights_init_normal(m):
"""
In the example above, we've described the input image in terms of its latent attributes using a single value to describe each attribute.
"""
classname = m.__class__.__name__
if classname.find("Conv") != -1:
torch.nn.init.normal_(m.weight.data, 0.0, 0.02)
elif classname.find("BatchNorm2d") != -1:
torch.nn.init.normal_(m.weight.data, 1.0, 0.02)
torch.nn.init.constant_(m.bias.data, 0.0) |
@rohan-paul Because it is not a comment, it is a documentation string, use the Python does not have Multi Line comments, |
The text was updated successfully, but these errors were encountered: