MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / group

Method group

examples/DoReFa-Net/resnet-dorefa.py:82–88  ·  view source on GitHub ↗
(x, name, channel, nr_block, stride)

Source from the content-addressed store, hash-verified

80 return shortcut + stem
81
82 def group(x, name, channel, nr_block, stride):
83 with tf.variable_scope(name + 'blk1'):
84 x = resblock(x, channel, stride)
85 for i in range(2, nr_block + 1):
86 with tf.variable_scope(name + 'blk{}'.format(i)):
87 x = resblock(x, channel, 1)
88 return x
89
90 with remap_variables(new_get_variable), \
91 argscope(BatchNorm, decay=0.9, epsilon=1e-4), \

Callers 15

_use_ldFunction · 0.80
_use_ldconfigFunction · 0.80
buildMethod · 0.80
_get_initial_sync_opMethod · 0.80
buildMethod · 0.80
get_post_init_opsMethod · 0.80
buildMethod · 0.80
_setup_graphMethod · 0.80
fMethod · 0.80
_get_opMethod · 0.80

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected