494
495def create_head(out_features):
496 layers = [
497 AdaptiveConcatPool2d(1), # noqa: F405498 nn.Flatten(),
499 nn.BatchNorm1d(1024),
500 nn.Dropout(0.25),
The variable name is not defined where it is used. This will lead to an error during the runtime. Make sure there is no typo. If the name was supposed to be imported, verify that you've actually imported the name.
import os.path
if os.path.exits('setup.cfg'): # misspelled `exists`
print('Found config file')
import os.path
if os.path.exists('setup.cfg'):
print('Found config file')