We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c5ad94 commit 1f236b3Copy full SHA for 1f236b3
testdata/dnn/tensorflow/generate_tf_models.py
@@ -594,9 +594,13 @@ def keras_relu6(x):
594
inp = tf.placeholder(tf.float32, [2, 3, 4, 5], 'input')
595
reduced = tf.reduce_sum(inp, axis=[2], keepdims=False)
596
save(inp, reduced, 'sum_pool_by_axis')
597
-# NWC -> NCW, NHC -> NWC
598
-np.save('sum_pool_by_axis_out.npy', np.load('sum_pool_by_axis_out.npy').transpose(0, 2, 1))
599
-
+################################################################################
+# This test case generated by tensorflow 1.15.0
+inp = tf.placeholder(tf.float32, [2, 3, 4, 1])
600
+biasadd = tf.nn.bias_add(inp, [1],data_format='NHWC')
601
+reduced = tf.reduce_sum(biasadd,axis=[2],keep_dims=False)
602
+expanddim = tf.expand_dims(reduced,axis=2)
603
+save(inp,expanddim,'reduce_sum2')
604
################################################################################
605
inp = tf.placeholder(tf.float32, [1, 4, 2, 3], 'input')
606
out = tf.math.reduce_sum(inp, axis=-1)
testdata/dnn/tensorflow/reduce_sum2_in.npy
224 Bytes
testdata/dnn/tensorflow/reduce_sum2_net.pb
493 Bytes
testdata/dnn/tensorflow/reduce_sum2_out.npy
152 Bytes
testdata/dnn/tensorflow/sum_pool_by_axis_out.npy
0 Bytes
0 commit comments