import tensorflow as tf

                                dtype=tf.float32)
    self.assertAllClose(ious.numpy(), expected_ious.numpy())

  def test_instance_non_maximum_suppression_1d_scores(self):
    mask0 = tf.constant([[1, 0],
                         [0, 1]], dtype=tf.float32)
    mask1 = tf.constant([[1, 1],
                         [0, 1]], dtype=tf.float32)
