From 5d644994d348126b7dd96017a389a5cfe7c3e66f Mon Sep 17 00:00:00 2001 From: guosheng Date: Wed, 2 Aug 2017 19:51:31 +0800 Subject: [PATCH] Add test_clip_layer.protostr for ClipLayer python unit test --- .../configs/protostr/test_clip_layer.protostr | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 python/paddle/trainer_config_helpers/tests/configs/protostr/test_clip_layer.protostr diff --git a/python/paddle/trainer_config_helpers/tests/configs/protostr/test_clip_layer.protostr b/python/paddle/trainer_config_helpers/tests/configs/protostr/test_clip_layer.protostr new file mode 100644 index 00000000000..4b9578a0c05 --- /dev/null +++ b/python/paddle/trainer_config_helpers/tests/configs/protostr/test_clip_layer.protostr @@ -0,0 +1,31 @@ +type: "nn" +layers { + name: "input" + type: "data" + size: 300 + active_type: "" +} +layers { + name: "__clip_0__" + type: "clip" + size: 300 + active_type: "" + inputs { + input_layer_name: "input" + clip_conf { + min: -10 + max: 10 + } + } +} +input_layer_names: "input" +output_layer_names: "__clip_0__" +sub_models { + name: "root" + layer_names: "input" + layer_names: "__clip_0__" + input_layer_names: "input" + output_layer_names: "__clip_0__" + is_recurrent_layer_group: false +} + -- GitLab