NVIDIA / DL4AGX

Deep Learning tools and applications for NVIDIA AGX platforms.
Apache License 2.0
144 stars 26 forks source link

Define undefined name e #37

Closed cclauss closed 3 years ago

cclauss commented 4 years ago

e is an undefined name in this context which has the potential to raise NameError at runtime.

Also, use ==/!= to compare constant literals (str, bytes, int, float, tuple) to avoid a SyntaxWarning on Python >= 3.8.

% python3.8

>>> "@" is "@"
<stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?