Merge pull request #834 from tink2123/fix_srn

Fix srn
This commit is contained in:
littletomatodonkey 2020-09-24 15:56:15 +08:00 committed by GitHub
commit 815f20b550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -100,11 +100,10 @@ class ResNet():
conv = self.basic_block(
input=conv,
num_filters=num_filters[block],
stride=stride,
if_first=block == i == 0,
stride=stride_list[block] if i == 0 else 1,
is_first=block == i == 0,
name=conv_name)
F.append(conv)
base = F[-1]
for i in [-2, -3]:
b, c, w, h = F[i].shape