From 49adb8d238e6a84a8f7e7ef1450cc1e74630751f Mon Sep 17 00:00:00 2001 From: Jebastin Nadar Date: Thu, 4 Feb 2021 14:20:05 +0530 Subject: [PATCH] Merge pull request #844 from SamFC10:tf-leakyrelu * added data for TF LeakyRelu test --- testdata/dnn/tensorflow/generate_tf_models.py | 4 ++++ testdata/dnn/tensorflow/leaky_relu_in.npy | Bin 0 -> 224 bytes testdata/dnn/tensorflow/leaky_relu_net.pb | Bin 0 -> 149 bytes testdata/dnn/tensorflow/leaky_relu_out.npy | Bin 0 -> 224 bytes 4 files changed, 4 insertions(+) create mode 100644 testdata/dnn/tensorflow/leaky_relu_in.npy create mode 100644 testdata/dnn/tensorflow/leaky_relu_net.pb create mode 100644 testdata/dnn/tensorflow/leaky_relu_out.npy diff --git a/testdata/dnn/tensorflow/generate_tf_models.py b/testdata/dnn/tensorflow/generate_tf_models.py index 4194e10ca..4b4b8a6bc 100644 --- a/testdata/dnn/tensorflow/generate_tf_models.py +++ b/testdata/dnn/tensorflow/generate_tf_models.py @@ -497,6 +497,10 @@ def my_dropout(x): save(inp, flatten, 'unfused_flatten_unknown_batch', optimize=False) ################################################################################ inp = tf.placeholder(tf.float32, [1, 2, 3, 4], 'input') +leakyRelu = tf.nn.leaky_relu(inp, alpha=0.1) +save(inp, leakyRelu, 'leaky_relu', optimize=False) +################################################################################ +inp = tf.placeholder(tf.float32, [1, 2, 3, 4], 'input') relu = tf.maximum(inp, 0.01 * inp, name='leaky_relu') * 2 save(inp, relu, 'leaky_relu_order1', optimize=False) ################################################################################ diff --git a/testdata/dnn/tensorflow/leaky_relu_in.npy b/testdata/dnn/tensorflow/leaky_relu_in.npy new file mode 100644 index 0000000000000000000000000000000000000000..3de9ab35b6e7755e7a6f5c73a092f8e977b9c8a8 GIT binary patch literal 224 zcmbR27wQ`j$;eQ~P_3SlTAW;@Zl$1ZlV+l>qoAIaUsO_*m=~X4l#&V(cT3DEP6dh= zXCxM+0{I$-ItnH_3Pw5##+o_`wF+bau4T;b`(wU3>|dJZxW6?{dcVUmsr?zP*8ATq z^4Z_Q?zi7&iq-xlmxJ~%`>DSF=xVL~oHg?M`FqXwcPC2k&$O}Jf4E$8|5I7%{meG< Z`}h3y+y5*ahzm6LXR+Gs_nm6J9{{cLN_+qS literal 0 HcmV?d00001 diff --git a/testdata/dnn/tensorflow/leaky_relu_net.pb b/testdata/dnn/tensorflow/leaky_relu_net.pb new file mode 100644 index 0000000000000000000000000000000000000000..35cbde4e438eec76b85cba587535e815f214079f GIT binary patch literal 149 zcmd<`XG*~=(_-gh3;~qoAIaUsO_*m=~X4l#&V(cT3DEP6dh= zXCxM+0{I$-ItnH_3Pw5##+o_`wF+bau4T;b`(nO2>|2`VxUV%%dY{8GseKu(*8AQp z^4ZtI?zhioiq*a)mxJ~#`>DR~=xVKfoHg?M_