Unverified Commit 908742dd authored by hsm207's avatar hsm207 Committed by GitHub
Browse files

Fix DeprecationWarning

This commit fixes `DeprecationWarning: Please use assertEqual instead.
  self.assertEquals(len(scales_to_logits), expected_num_logits[i])` deprecation warning.
parent 83d827de
...@@ -78,7 +78,7 @@ class DeeplabModelTest(tf.test.TestCase): ...@@ -78,7 +78,7 @@ class DeeplabModelTest(tf.test.TestCase):
# Expected number of logits = len(image_pyramid) + 1, since the # Expected number of logits = len(image_pyramid) + 1, since the
# last logits is merged from all the scales. # last logits is merged from all the scales.
self.assertEquals(len(scales_to_logits), expected_num_logits[i]) self.assertEqual(len(scales_to_logits), expected_num_logits[i])
def testForwardpassDeepLabv3plus(self): def testForwardpassDeepLabv3plus(self):
crop_size = [33, 33] crop_size = [33, 33]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment