@@ -158,7 +158,7 @@ def inception_v3_base(inputs,
158
158
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
159
159
branch_3 = slim .conv2d (branch_3 , depth (32 ), [1 , 1 ],
160
160
scope = 'Conv2d_0b_1x1' )
161
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
161
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
162
162
end_points [end_point ] = net
163
163
if end_point == final_endpoint : return net , end_points
164
164
@@ -182,7 +182,7 @@ def inception_v3_base(inputs,
182
182
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
183
183
branch_3 = slim .conv2d (branch_3 , depth (64 ), [1 , 1 ],
184
184
scope = 'Conv2d_0b_1x1' )
185
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
185
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
186
186
end_points [end_point ] = net
187
187
if end_point == final_endpoint : return net , end_points
188
188
@@ -205,7 +205,7 @@ def inception_v3_base(inputs,
205
205
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
206
206
branch_3 = slim .conv2d (branch_3 , depth (64 ), [1 , 1 ],
207
207
scope = 'Conv2d_0b_1x1' )
208
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
208
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
209
209
end_points [end_point ] = net
210
210
if end_point == final_endpoint : return net , end_points
211
211
@@ -224,7 +224,7 @@ def inception_v3_base(inputs,
224
224
with tf .variable_scope ('Branch_2' ):
225
225
branch_2 = slim .max_pool2d (net , [3 , 3 ], stride = 2 , padding = 'VALID' ,
226
226
scope = 'MaxPool_1a_3x3' )
227
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 ])
227
+ net = tf .concat ([branch_0 , branch_1 , branch_2 ], 3 )
228
228
end_points [end_point ] = net
229
229
if end_point == final_endpoint : return net , end_points
230
230
@@ -253,7 +253,7 @@ def inception_v3_base(inputs,
253
253
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
254
254
branch_3 = slim .conv2d (branch_3 , depth (192 ), [1 , 1 ],
255
255
scope = 'Conv2d_0b_1x1' )
256
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
256
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
257
257
end_points [end_point ] = net
258
258
if end_point == final_endpoint : return net , end_points
259
259
@@ -282,7 +282,7 @@ def inception_v3_base(inputs,
282
282
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
283
283
branch_3 = slim .conv2d (branch_3 , depth (192 ), [1 , 1 ],
284
284
scope = 'Conv2d_0b_1x1' )
285
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
285
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
286
286
end_points [end_point ] = net
287
287
if end_point == final_endpoint : return net , end_points
288
288
# mixed_6: 17 x 17 x 768.
@@ -310,7 +310,7 @@ def inception_v3_base(inputs,
310
310
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
311
311
branch_3 = slim .conv2d (branch_3 , depth (192 ), [1 , 1 ],
312
312
scope = 'Conv2d_0b_1x1' )
313
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
313
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
314
314
end_points [end_point ] = net
315
315
if end_point == final_endpoint : return net , end_points
316
316
@@ -339,7 +339,7 @@ def inception_v3_base(inputs,
339
339
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
340
340
branch_3 = slim .conv2d (branch_3 , depth (192 ), [1 , 1 ],
341
341
scope = 'Conv2d_0b_1x1' )
342
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
342
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
343
343
end_points [end_point ] = net
344
344
if end_point == final_endpoint : return net , end_points
345
345
@@ -361,7 +361,7 @@ def inception_v3_base(inputs,
361
361
with tf .variable_scope ('Branch_2' ):
362
362
branch_2 = slim .max_pool2d (net , [3 , 3 ], stride = 2 , padding = 'VALID' ,
363
363
scope = 'MaxPool_1a_3x3' )
364
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 ])
364
+ net = tf .concat ([branch_0 , branch_1 , branch_2 ], 3 )
365
365
end_points [end_point ] = net
366
366
if end_point == final_endpoint : return net , end_points
367
367
# mixed_9: 8 x 8 x 2048.
@@ -371,21 +371,21 @@ def inception_v3_base(inputs,
371
371
branch_0 = slim .conv2d (net , depth (320 ), [1 , 1 ], scope = 'Conv2d_0a_1x1' )
372
372
with tf .variable_scope ('Branch_1' ):
373
373
branch_1 = slim .conv2d (net , depth (384 ), [1 , 1 ], scope = 'Conv2d_0a_1x1' )
374
- branch_1 = tf .concat (3 , [
374
+ branch_1 = tf .concat ([
375
375
slim .conv2d (branch_1 , depth (384 ), [1 , 3 ], scope = 'Conv2d_0b_1x3' ),
376
- slim .conv2d (branch_1 , depth (384 ), [3 , 1 ], scope = 'Conv2d_0b_3x1' )])
376
+ slim .conv2d (branch_1 , depth (384 ), [3 , 1 ], scope = 'Conv2d_0b_3x1' )], 3 )
377
377
with tf .variable_scope ('Branch_2' ):
378
378
branch_2 = slim .conv2d (net , depth (448 ), [1 , 1 ], scope = 'Conv2d_0a_1x1' )
379
379
branch_2 = slim .conv2d (
380
380
branch_2 , depth (384 ), [3 , 3 ], scope = 'Conv2d_0b_3x3' )
381
- branch_2 = tf .concat (3 , [
381
+ branch_2 = tf .concat ([
382
382
slim .conv2d (branch_2 , depth (384 ), [1 , 3 ], scope = 'Conv2d_0c_1x3' ),
383
- slim .conv2d (branch_2 , depth (384 ), [3 , 1 ], scope = 'Conv2d_0d_3x1' )])
383
+ slim .conv2d (branch_2 , depth (384 ), [3 , 1 ], scope = 'Conv2d_0d_3x1' )], 3 )
384
384
with tf .variable_scope ('Branch_3' ):
385
385
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
386
386
branch_3 = slim .conv2d (
387
387
branch_3 , depth (192 ), [1 , 1 ], scope = 'Conv2d_0b_1x1' )
388
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
388
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
389
389
end_points [end_point ] = net
390
390
if end_point == final_endpoint : return net , end_points
391
391
@@ -396,21 +396,21 @@ def inception_v3_base(inputs,
396
396
branch_0 = slim .conv2d (net , depth (320 ), [1 , 1 ], scope = 'Conv2d_0a_1x1' )
397
397
with tf .variable_scope ('Branch_1' ):
398
398
branch_1 = slim .conv2d (net , depth (384 ), [1 , 1 ], scope = 'Conv2d_0a_1x1' )
399
- branch_1 = tf .concat (3 , [
399
+ branch_1 = tf .concat ([
400
400
slim .conv2d (branch_1 , depth (384 ), [1 , 3 ], scope = 'Conv2d_0b_1x3' ),
401
- slim .conv2d (branch_1 , depth (384 ), [3 , 1 ], scope = 'Conv2d_0c_3x1' )])
401
+ slim .conv2d (branch_1 , depth (384 ), [3 , 1 ], scope = 'Conv2d_0c_3x1' )], 3 )
402
402
with tf .variable_scope ('Branch_2' ):
403
403
branch_2 = slim .conv2d (net , depth (448 ), [1 , 1 ], scope = 'Conv2d_0a_1x1' )
404
404
branch_2 = slim .conv2d (
405
405
branch_2 , depth (384 ), [3 , 3 ], scope = 'Conv2d_0b_3x3' )
406
- branch_2 = tf .concat (3 , [
406
+ branch_2 = tf .concat ([
407
407
slim .conv2d (branch_2 , depth (384 ), [1 , 3 ], scope = 'Conv2d_0c_1x3' ),
408
- slim .conv2d (branch_2 , depth (384 ), [3 , 1 ], scope = 'Conv2d_0d_3x1' )])
408
+ slim .conv2d (branch_2 , depth (384 ), [3 , 1 ], scope = 'Conv2d_0d_3x1' )], 3 )
409
409
with tf .variable_scope ('Branch_3' ):
410
410
branch_3 = slim .avg_pool2d (net , [3 , 3 ], scope = 'AvgPool_0a_3x3' )
411
411
branch_3 = slim .conv2d (
412
412
branch_3 , depth (192 ), [1 , 1 ], scope = 'Conv2d_0b_1x1' )
413
- net = tf .concat (3 , [branch_0 , branch_1 , branch_2 , branch_3 ])
413
+ net = tf .concat ([branch_0 , branch_1 , branch_2 , branch_3 ], 3 )
414
414
end_points [end_point ] = net
415
415
if end_point == final_endpoint : return net , end_points
416
416
raise ValueError ('Unknown final endpoint %s' % final_endpoint )
0 commit comments