def test_reduce_batch_minus_min_and_max( self, placeholder_fn, value, reduce_instance_dims, expected_result): x = placeholder_fn() batch_minus_min, batch_max = tf_utils.reduce_batch_minus_min_and_max( x, reduce_instance_dims) with tf.Session() as sess: result = sess.run([batch_minus_min, batch_max], feed_dict={x: value}) self.assertAllEqual(result, expected_result)
def _reduce_batch_minus_min_and_max(x): return tf_utils.reduce_batch_minus_min_and_max( x, reduce_instance_dims=reduce_instance_dims)