iduta / pyconv

Pyramidal Convolution: Rethinking Convolutional Neural Networks for Visual Recognition (https://arxiv.org/pdf/2006.11538.pdf)
MIT License
328 stars 53 forks source link

Avoid SyntaxWarning on Python >= 3.8 #4

Closed cclauss closed 4 years ago

cclauss commented 4 years ago

flake8 testing of https://github.com/iduta/pyconv on Python 3.8.3

% flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./utils.py:10:12: F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple)
        if mode is not 'a':
           ^
./models/resnet.py:15:1: F822 undefined name 'resnet200' in __all__
__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101',
^
1     F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple)
1     F822 undefined name 'resnet200' in __all__
2