Skip to content

Commit b2e6ccc

Browse files
authored
[IMPORTANT] release test script for layers | basic layer update (#389)
* release test script for layers * update basic layer * fixed averaged embedding layer for python2
1 parent 4303979 commit b2e6ccc

38 files changed

+1822
-678
lines changed

.travis.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ script:
1919
- python tests/test_yapf_format.py
2020
- python tests/test_pydocstyle.py
2121
- python tests/test_mnist_simple.py
22-
- python tests/test_pooling.py
2322
- python tests/test_reuse_mlp.py
24-
- python tests/test_time_distributed.py
23+
- python tests/test_layers_basic.py
24+
- python tests/test_layers_convolution.py
25+
- python tests/test_layers_core.py
26+
- python tests/test_layers_extend.py
27+
- python tests/test_layers_flow_control.py
28+
- python tests/test_layers_importer.py
29+
- python tests/test_layers_merge.py
30+
- python tests/test_layers_normalization.py
31+
- python tests/test_layers_pooling.py
32+
- python tests/test_layers_recurrent.py
33+
- python tests/test_layers_shape.py
34+
- python tests/test_layers_spatial_transformer.py
35+
- python tests/test_layers_special_activation.py
36+
- python tests/test_layers_stack.py
37+
- python tests/test_layers_super_resolution.py
38+
- python tests/test_layers_time_distributed.py

example/tutorial_imagenet_inceptionV3_distributed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def build_network(image_input, num_classes=1001, is_training=False):
158158
net_in = tl.layers.InputLayer(image_input, name='input_layer')
159159
with slim.arg_scope(inception_v3_arg_scope()):
160160
network = tl.layers.SlimNetsLayer(
161-
layer=net_in, slim_layer=inception_v3, slim_args={
161+
prev_layer=net_in, slim_layer=inception_v3, slim_args={
162162
'num_classes': num_classes,
163163
'is_training': is_training
164164
}, name='InceptionV3')

example/tutorial_inceptionV3_tfslim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def print_prob(prob):
100100
# logits, end_points = inception_v3(X, num_classes=1001,
101101
# is_training=False)
102102
network = tl.layers.SlimNetsLayer(
103-
layer=net_in,
103+
prev_layer=net_in,
104104
slim_layer=inception_v3,
105105
slim_args={
106106
'num_classes': 1001,

example/tutorial_keras.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717

1818
batch_size = 128
1919
x = tf.placeholder(tf.float32, shape=[None, 784])
20-
y_ = tf.placeholder(
21-
tf.int64, shape=[
22-
None,
23-
])
20+
y_ = tf.placeholder(tf.int64, shape=[None])
2421

2522

2623
def keras_block(x):

0 commit comments

Comments
 (0)