Ejemplo n.º 1
0
    def conv_pip(name, x):
        name = functools.partial('{}_{}'.format, name)

        x = conv2d(name('subconv0'), x, config.data_shape[3]*2, kernel=3, stride=1, nl=nl)
        x = conv2d(name('subconv1'), x, config.data_shape[3], kernel=3, stride=1, nl=nl)
        x = fc_layer(name('subfc2'), x, config.unit_shape, config.unit_shape, nl)
        return x
Ejemplo n.º 2
0
 def conv_pip(name, x):
     with tf.name_scope(name) as scope:
         x = conv2d('0',
                    x,
                    config.data_shape[3] * 2,
                    kernel=3,
                    stride=1,
                    nl=nl)
         x = conv2d('1',
                    x,
                    config.data_shape[3],
                    kernel=3,
                    stride=1,
                    nl=nl)
     return x
Ejemplo n.º 3
0
    def conv_pip(name, x):
        name = functools.partial('{}_{}'.format, name)

        x = conv2d(name('0'),
                   x,
                   Config.data_shape[3] * 2,
                   kernel=3,
                   stride=1,
                   nl=nl)
        x = conv2d(name('1'),
                   x,
                   Config.data_shape[3],
                   kernel=3,
                   stride=1,
                   nl=nl)
        return x
Ejemplo n.º 4
0
    def conv_pip(name, x):
        name = functools.partial('{}_{}'.format, name)

        x = conv2d(name('subconv0'),
                   x,
                   config.data_shape[3] * 2,
                   kernel=3,
                   stride=1,
                   nl=nl)
        x = conv2d(name('subconv1'),
                   x,
                   config.data_shape[3],
                   kernel=3,
                   stride=1,
                   nl=nl)
        x = fc_layer(name('subfc2'), x, config.unit_shape, config.unit_shape,
                     nl)
        return x
Ejemplo n.º 5
0
    def conv_pip(name, x):
        name = functools.partial('{}_{}'.format, name)

        x = conv2d(name('0'), x, Config.data_shape[3]*2, kernel=3, stride=1, nl=nl)
        x = conv2d(name('1'), x, Config.data_shape[3], kernel=3, stride=1, nl=nl)
        return x
Ejemplo n.º 6
0
 def conv_pip(name, x):
     with tf.name_scope(name) as scope:
         x = conv2d('0', x, config.data_shape[3]*2, kernel=3, stride=1, nl=nl)
         x = conv2d('1', x, config.data_shape[3], kernel=3, stride=1, nl=nl)
     return x