From f48535102b6f71ba802e9b656c73cdd3ec746a3b Mon Sep 17 00:00:00 2001 From: xuwei06 Date: Mon, 19 Jun 2017 10:46:40 -0700 Subject: [PATCH] Add the test_repeat_layer.py --- .../tests/configs/test_repeat_layer.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 python/paddle/trainer_config_helpers/tests/configs/test_repeat_layer.py diff --git a/python/paddle/trainer_config_helpers/tests/configs/test_repeat_layer.py b/python/paddle/trainer_config_helpers/tests/configs/test_repeat_layer.py new file mode 100644 index 00000000000..004e2a5dd4e --- /dev/null +++ b/python/paddle/trainer_config_helpers/tests/configs/test_repeat_layer.py @@ -0,0 +1,11 @@ +from paddle.trainer_config_helpers import * + +settings(batch_size=1000, learning_rate=1e-5) + +din = data_layer(name='data', size=30) + +outputs( + repeat_layer( + input=din, num_repeats=10, as_row_vector=True), + repeat_layer( + input=din, num_repeats=10, act=TanhActivation(), as_row_vector=False)) -- GitLab