Remove unused import and do not use "is" for string comparison
This commit is contained in:
parent
98661e2a3a
commit
8b9901e411
@ -18,7 +18,6 @@ from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import collections
|
||||
import os
|
||||
import platform
|
||||
import tempfile
|
||||
@ -193,7 +192,7 @@ class TrtConversionParams(object):
|
||||
DEFAULT_TRT_CONVERSION_PARAMS._replace(...)
|
||||
"""
|
||||
for k, v in vars().items():
|
||||
if v and (k is not "self"):
|
||||
if v and (k != "self"):
|
||||
setattr(self, k, v)
|
||||
return self
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user