Skip to content

Commit 85e0a35

Browse files
committed
remove f-strings
1 parent f438ddb commit 85e0a35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

efficientnet_pytorch/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ def extract_endpoints(self, inputs):
261261
drop_connect_rate *= float(idx) / len(self._blocks) # scale drop connect_rate
262262
x = block(x, drop_connect_rate=drop_connect_rate)
263263
if prev_x.size(2) > x.size(2):
264-
endpoints[f'reduction_{len(endpoints)+1}'] = prev_x
264+
endpoints['reduction_{}'.format(len(endpoints)+1)] = prev_x
265265
prev_x = x
266266

267267
# Head
268268
x = self._swish(self._bn1(self._conv_head(x)))
269-
endpoints[f'reduction_{len(endpoints)+1}'] = x
269+
endpoints['reduction_{}'.format(len(endpoints)+1)] = x
270270

271271
return endpoints
272272

0 commit comments

Comments
 (0)