Skip to content

Commit 0a84dd5

Browse files
authored
Merge pull request #1 from cclauss/patch-1
Identity is not the same thing as equality in Python
2 parents fee607e + 51f8570 commit 0a84dd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/dpn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ def __init__(
167167
self.num_1x1_c = num_1x1_c
168168
self.inc = inc
169169
self.b = b
170-
if block_type is 'proj':
170+
if block_type == 'proj':
171171
self.key_stride = 1
172172
self.has_proj = True
173-
elif block_type is 'down':
173+
elif block_type == 'down':
174174
self.key_stride = 2
175175
self.has_proj = True
176176
else:
177-
assert block_type is 'normal'
177+
assert block_type == 'normal'
178178
self.key_stride = 1
179179
self.has_proj = False
180180

0 commit comments

Comments
 (0)