b7628060e6ae3c23f37a21d47d625609074dda24,tests/test_layers_convolution.py,,,#,5

Before Change



offset1 = tl.layers.Conv2d(nin, 18, (3, 3), (1, 1), padding="SAME", name="offset1")
net = tl.layers.DeformableConv2d(nin, offset1, 32, (3, 3), name="deformable1")
offset2 = tl.layers.Conv2d(net, 18, (3, 3), (1, 1), padding="SAME", name="offset2")
net = tl.layers.DeformableConv2d(net, offset2, 64, (3, 3), name="deformable2")
net.print_layers()
net.print_params(False)

After Change


n.print_layers()
n.print_params(False)

shape = n.outputs.get_shape().as_list()
if shape[1:] != [98, 98, 32]:
    raise Exception("shape dont match")

if len(n.all_layers) != 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: b7628060e6ae3c23f37a21d47d625609074dda24
Time: 2018-03-13
Author: dhsig552@163.com
File Name: tests/test_layers_convolution.py
Class Name:
Method Name:


Project Name: keras-team/keras
Commit Name: ace7b7fe7f34ae02df078f0a92b4b37be7bc3ff9
Time: 2016-01-20
Author: farizrahman4u@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: rnn


Project Name: deepmind/sonnet
Commit Name: ef86d2e73e7ce03c4184a04a336d96caf661269a
Time: 2017-07-03
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: Conv1DTranspose
Method Name: _build