From ce3925cf580435b09ee7cc4156e998dba3a8d2d9 Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Thu, 19 Mar 2020 09:18:57 -0700 Subject: [PATCH] Remove test to un-red nightly builds as suggested in b/151378056 PiperOrigin-RevId: 301829065 Change-Id: I88a9d159faa9169de2854e69cc116af29943c74e --- .../compatibility/testdata/test_file_v1_12.py | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/tensorflow/tools/compatibility/testdata/test_file_v1_12.py b/tensorflow/tools/compatibility/testdata/test_file_v1_12.py index 36176e7d568..c74e076e4c3 100644 --- a/tensorflow/tools/compatibility/testdata/test_file_v1_12.py +++ b/tensorflow/tools/compatibility/testdata/test_file_v1_12.py @@ -80,31 +80,6 @@ class TestUpgrade(test_util.TensorFlowTestCase): logits=[0.1, 0.8], labels=[0, 1]) self.assertAllClose(out, 0.40318608) - def testLinearClassifier(self): - if _TEST_VERSION == 2 and self._tf_api_version == 1: - # Skip if we converted this file to v2 but running with tf v1. - # In this case, conversion script adds reference to - # tf.keras.losses.Reduction which is not available in v1. - self.skipTest( - 'After converting to 2.0, this test does not work with ' - 'TensorFlow 1.x.') - return - feature_column = tf.feature_column.numeric_column( - 'feature', shape=(1,)) - - classifier = tf.estimator.LinearClassifier( - n_classes=2, feature_columns=[feature_column]) - - data = {'feature': [1, 20, 3]} - target = [0, 1, 0] - classifier.train( - input_fn=lambda: (data, target), - steps=100) - scores = classifier.evaluate( - input_fn=lambda: (data, target), - steps=100) - self.assertGreater(scores['accuracy'], 0.99) - def testUniformUnitScalingInitializer(self): init = tf.initializers.uniform_unit_scaling(0.5, seed=1) self.assertArrayNear(