def fire_module(inputs,
squeeze_depth,
expand_depth,
reuse=None,
scope=None,
outputs_collections=None):
with tf.variable_scope(scope, 'fire', [inputs], reuse=reuse):
with slim.arg_scope([slim.conv2d, slim.max_pool2d],
outputs_collections=None):
net = squeeze(inputs, squeeze_depth)
outputs = expand(net, expand_depth)
return outputs
评论列表
文章目录