Skip to content

Commit

Permalink
Merge pull request #844 from SamFC10:tf-leakyrelu
Browse files Browse the repository at this point in the history
* added data for TF LeakyRelu test
  • Loading branch information
jebastin-nadar authored Feb 4, 2021
1 parent 960de6c commit 49adb8d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testdata/dnn/tensorflow/generate_tf_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
################################################################################
Expand Down
Binary file added testdata/dnn/tensorflow/leaky_relu_in.npy
Binary file not shown.
Binary file added testdata/dnn/tensorflow/leaky_relu_net.pb
Binary file not shown.
Binary file added testdata/dnn/tensorflow/leaky_relu_out.npy
Binary file not shown.

0 comments on commit 49adb8d

Please sign in to comment.