course22p2 icon indicating copy to clipboard operation
course22p2 copied to clipboard

Two definitions of conv imported in resnet.py

Open mnslarcher opened this issue 1 year ago • 0 comments

In resnet.py there are (more than) two import *:

from .conv import *
from .init import *

Both contain a conv def. It took me a moment to figure out where the one that was actually used was (given the name I would have said in conv), maybe it would be helpful a refactoring or to avoid the "import *"? I think this is a classic case where import * can lead to unexpected behavior, what do you think?

mnslarcher avatar May 13 '23 09:05 mnslarcher